mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 06:02:14 -06:00
[GH-ISSUE #114] Building index on larger collection #65
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @donl on GitHub (Jun 2, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/114
Originally assigned to: @appy-one on GitHub.
I'm having issues building indexes with larger collections (10k items) with a single Date field.
Error building index /item//at: Maximum call stack size exceeded
[idx-test] Index build on "/item//at" failed: Maximum call stack size exceeded (code: undefined)
/ace-server-test/node_modules/acebase/src/data-index.js:3801
const recursiveSort = (start, end) => {
^
RangeError: Maximum call stack size exceeded
at recursiveSort (/ace-server-test/node_modules/acebase/src/data-index.js:3801:25)
@appy-one commented on GitHub (Jun 3, 2022):
I managed to reproduce this and am on it. Thanks for reporting!
@appy-one commented on GitHub (Jun 6, 2022):
I fixed this by replacing the used quicksort algorithm with a faster variant that uses stacks instead of recursion (which was causing the stack overflow). I've published the changes in v1.21.2. Thanks again for reporting this, let me know if it works!
Also, many many thanks for sponsoring! You rock!!