Indices on endpoint tables #1102
Replies: 2 comments 3 replies
-
I'd love a PR when you have some time! Do you query the indice instead of the table for badges and such? Also, how many endpoints do you have? You mentioned increasing the endpoint limit - do you mean the results (defaults to max of 100)? If so, what's your current max? I do plan on increasing the maximum number of reaults per endpoint soon, so this is pretty valuable information. |
Beta Was this translation helpful? Give feedback.
-
We don't access the tables directly at all. We found that it was sqlite itself that constantly needed a lot of CPU when it was deleting Endpoint Results, i.e. as part of the automatic cleanup logic that calls deleteOldEndpointResults. The "ON DELETE CASCADE" caused sqlite to scan endpoint_result_conditions, which in our case was ~700k PR is on the way. Regarding limits, we currently have: MaximumNumberOfResults = 1000 and we also increased maximumNumberOfResults & pageSize to 40 in EndpointGroup.vue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
For our installation we increased the endpoint limits, resulting in over 700k endpoint result conditions. This caused sqlite to consume a lot of CPU when it performed cascading deletes via forign constraints.
We found adding the following indices resolved the problem, and they are probably useful regardless of the endpoint limits.
Maybe it helps others. I'll happily raise a PR if requested.
Beta Was this translation helpful? Give feedback.
All reactions