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

loadTestDataFromDb: Load data in chunks of 100 rows #90

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

baltpeter
Copy link
Member

With the new data from our first traffic collection on the web (tweaselORG/data.tweasel.org#3), the request database has gotten quite huge and I have seen debug-adapter runs take a long time and even fail due to timeouts.

Luckily, the timeouts at least can be solved quite easily. Turns out, we were already trying to load all matching rows in a single request. Now, we instead load it in chunks of 100 rows. Setting the _size parameter was sufficient for that—we had already implemented handling of the next_url in responses and row limits.

With this change, I haven't seen any timeouts anymore so far and while still slower, it isn't too bad anymore.

I still want to work on making data.tweasel.org as a whole faster again, but this is a good change in any case.

With the new data from our first traffic collection on the web
(tweaselORG/data.tweasel.org#3), the request
database has gotten quite huge and I have seen debug-adapter runs take
a long time and even fail due to timeouts.

Luckily, the timeouts at least can be solved quite easily. Turns out,
we were already trying to load all matching rows in a single request.
Now, we instead load it in chunks of 100 rows. Setting the _size
parameter was sufficient for that—we had already implemented handling
of the next_url in responses and row limits.

With this change, I haven't seen any timeouts anymore so far and while
still slower, it isn't too bad anymore.

I still want to work on making data.tweasel.org as a whole faster again,
but this is a good change in any case.
@zner0L zner0L merged commit d6fb693 into main Oct 7, 2024
@baltpeter baltpeter deleted the b_testdata-limits branch October 21, 2024 05:56
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