-
Couldn't load subscription status.
- Fork 156
Open
Copy link
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: cell-merginggrid: global-search
Description
Description
When searching and moving trough the search results with findNext the grid rebuilds the search cache unnecessary. This, for a small sample, is not a problem. However, if you have a million records, it freezes as the time needed to build that cache becomes more than 1 second.
- igniteui-angular version:
- browser:
Steps to reproduce
- Open the merging dev sample
- Remove the paging from the base grid sample
- Click on the first row so that the first
germanycell unmerges - Add a
console.loginside therebuildMatchCachemethod ingrid-base.directive.ts(this method is called when the search text has changed to rebuild the cache used for moving between search results) - Type
germanyin the search bar - Start moving forward with the next icon
NOTE: Please note that if you do not unmerge the first Germany cell, it works correct.
Result
See that there are couple of calls to the rebuildMatchCache method that should not be there.
Expected result
The search cache should not be rebuilt when moving between search result with findNext
Attachments
merging-cache.mov
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: cell-merginggrid: global-search