Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
For one of our projects we are using Datascript in combination with Om/next for rendering our frontend. Using DB on frontend is really nice for rendering DOM elements. We are working with quite big datasets on frontend that have alot of relations between them.
As our project grows dataset is getting larger and larger and we are pulling more and more data for rendering. IE. in one part of application we are pulling about 520 entites that represent user tasks. Each of this task is linked to a project and to the person that assinged task, group and so on... So we have about 3-5 references to other entities.
This pull takes about ~0.5-7 seconds and feels slowish.
--
When going through dev tools in Chrome we've noticed that clojure.core/into is taking alot of "Total Time" when calling datascript.core/pull so we've modified datascript.pull-api/pull-attr-datoms to see what will happen.
Results are that execution time was cut down for ~100-150 ms.
Can you please check out changes and comment?
Tnx
This change is