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

feat: Improve node creation performance #338

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

eric-nguyen-cs
Copy link
Contributor

What

Small follow-up PR to #318
By updating the node creation query, we speed by about x2 the node creation performance.
So for example, Categories are created in about 15s instead of 25s

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Note: we could also batch the other_nodes creation, although there are only few, but it does not complicate the code so much !

@eric-nguyen-cs
Copy link
Contributor Author

LGTM

Note: we could also batch the other_nodes creation, although there are only few, but it does not complicate the code so much !

Yes we could do what we did for ENTRY nodes for TEXT, SYNONYMS and STOPWORDS nodes but that is such a small performance gain that I believe that can focus on that much later (or as a part of another refactor)

@eric-nguyen-cs eric-nguyen-cs merged commit 74d0083 into main Jan 17, 2024
9 checks passed
@eric-nguyen-cs eric-nguyen-cs deleted the ericn/update-node-property-creation branch January 17, 2024 18:30
@eric-nguyen-cs
Copy link
Contributor Author

linked to : #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants