Skip to content

perf: refactor reset method to clear all collections#14

Merged
mammadataei merged 1 commit intographql-utils:mainfrom
S-Ali-S:add_rest_documents_functionality
Nov 1, 2022
Merged

perf: refactor reset method to clear all collections#14
mammadataei merged 1 commit intographql-utils:mainfrom
S-Ali-S:add_rest_documents_functionality

Conversation

@S-Ali-S
Copy link
Copy Markdown
Contributor

@S-Ali-S S-Ali-S commented Nov 1, 2022

This PR refactors the reset method to clear all collections instead of re-initializing collection maps. This improves the performance by avoiding unnecessary traverse of the schema and garbage collection to free up the memory.

@mammadataei mammadataei merged commit c3edacb into graphql-utils:main Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants