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

[BUG] Queries take too long #73

Open
lakhoune opened this issue Feb 20, 2022 · 5 comments
Open

[BUG] Queries take too long #73

lakhoune opened this issue Feb 20, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@lakhoune
Copy link
Member

lakhoune commented Feb 20, 2022

Many queries take too long for the server to respond and just timeout. This is especially the case if the QV service needs to go through every single DB entry of a table (This also holds for WHERE clauses that check certain JSON paths).
In most cases, we can just improve the query by specifying the source agent with the $SERVICE$ wildcard.
However, this can not always be done, since we might want to include monitoring data from other services from which we don't know the source agent id. Examples for this are if you want to see the logs that the social bot manager service logs for your bot or you want to get the survey results for a survey done on your service.

@lakhoune lakhoune added the bug Something isn't working label Feb 20, 2022
@lakhoune
Copy link
Member Author

lakhoune commented Feb 20, 2022

What we could do here is add more wildcards such as $BOT_MANAGER$ or $SURVEYS$ and replace them on request with the agent ids for those specific services.

@Aran30
Copy link

Aran30 commented Feb 20, 2022

This sounds like a good idea, maybe it would be nice to also have this for all services and not only the bot-manager and the survey-service.

@lakhoune
Copy link
Member Author

I don't really see a use case for other services. Furthermore you would need to introduce wildcards for each service which would be a bit too much

@lakhoune lakhoune added enhancement New feature or request and removed bug Something isn't working labels Mar 24, 2022
@lakhoune
Copy link
Member Author

we could also use indexing to further improve the performance

@klamma
Copy link
Member

klamma commented May 19, 2022

You can also fetch results in rows, e.g., the first 100 rows. While you display them, you can fetch more rows in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants