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

Removing a large dataset throws RangeError #231

Open
kylerberry opened this issue Jun 5, 2023 · 1 comment
Open

Removing a large dataset throws RangeError #231

kylerberry opened this issue Jun 5, 2023 · 1 comment
Assignees

Comments

@kylerberry
Copy link

Hi, I'm working with the local instance of AceBase. I have an an index of Things that has ~100k records in it. Attempting to drop those records to do a fresh data import results in the following error:
RangeError: Maximum call stack size exceeded

Example code:

  public _drop() {
    return this.db.ref('Things').remove();
  }
@ilkkanisula
Copy link

It would help developer if you can clone this repo and write new failing unit test case with your example. See existing tests in repo for example.

As a workaround I guess you could write loops to iterate your dataset using existing api calls to make smaller remove patches.

Root cause of this error you are seeing is probably a recursion that code uses to walk the database tree.

@appy-one appy-one self-assigned this Aug 16, 2023
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

No branches or pull requests

3 participants