Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optmize vertex and edge builder functions #1307

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

rafsun42
Copy link
Member

Changes:
- Added the agtype_raw module, which contains helper functions to
build agtype directly without building an agtype_value first
- Optimize _agtype_build_vertex and _agtype_build_edge functions

The agtype_raw module:
Inserting a composite agtype (i.e. object) into another agtype
(i.e. as an array element) requires the first agtype to be deserialized
into agtype_value. Then, the agtype_value to be serialized back into
the second agtype.

This module provides functions that can perform such insertion without
deserializing first. It is meant to speed up queries that does
deserialization-serialization back and forth involving deeply nested
agtype objects.

Changes:
    - Added the agtype_raw module, which contains helper functions to
      build agtype directly without building an agtype_value first
    - Optimize _agtype_build_vertex and _agtype_build_edge functions

The agtype_raw module:
    Inserting a composite agtype (i.e. object) into another agtype
    (i.e. as an array element) requires the first agtype to be deserialized
    into agtype_value. Then, the agtype_value to be serialized back into
    the second agtype.

    This module provides functions that can perform such insertion without
    deserializing first. It is meant to speed up queries that does
    deserialization-serialization back and forth involving deeply nested
    agtype objects.
@github-actions github-actions bot added the PG14 PostgreSQL14 label Oct 26, 2023
@jrgemignani jrgemignani merged commit 42ce8d9 into apache:PG14 Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG14 PostgreSQL14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants