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

performance optimalisation #262

Open
phavekes opened this issue Nov 28, 2024 · 0 comments
Open

performance optimalisation #262

phavekes opened this issue Nov 28, 2024 · 0 comments
Labels

Comments

@phavekes
Copy link
Member

This issue is imported from pivotal - Originaly created at Apr 13, 2023 by Bart Geesink

Our production influx is experiencing some issues with its performance, so I was looking into the database what current query is running:
435 SELECT count(distinct(user_id)) AS distinct_count_user_id INTO log_logins.autogen.sp_idp_pa_users_year_unique FROM log_logins.autogen.EBAUTH WHERE state = 'prodaccepted' AND time >= '1970-01-01T00:00:00Z' AND time < '2071-08-02T23:34:33.709551616Z' GROUP BY sp_entity_id, idp_entity_id, time(12600w), year log_logins 17m2s running

It seems to me it is querying everything, not only this year. Is there a way to optimise this particular query? I'll have a look into the log to check for other long running queries

@phavekes phavekes assigned phavekes and unassigned phavekes Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant