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

Lineage long queries #18

Open
connorhsm opened this issue Jul 18, 2024 · 1 comment
Open

Lineage long queries #18

connorhsm opened this issue Jul 18, 2024 · 1 comment

Comments

@connorhsm
Copy link
Member

Spam reports of long queries.

'This query took 1,721 miliseconds:  SELECT lives.id, display_id, player_id, name, age, generation, death_time, deepest_descendant_generation, servers.server FROM lineageServer_lives as lives   INNER JOIN lineageServer_users as users ON lives.user_id = users.id INNER JOIN lineageServer_servers as servers ON lives.server_id = servers.id   WHERE 1  AND age >= 50 ORDER BY death_time DESC LIMIT 5;', '2024-07-18 14:11:54'

'This query took 6,773 miliseconds:  SELECT lives.id, display_id, player_id, name, age, generation, death_time, deepest_descendant_generation, servers.server FROM lineageServer_lives as lives   INNER JOIN lineageServer_users as users ON lives.user_id = users.id INNER JOIN lineageServer_servers as servers ON lives.server_id = servers.id   WHERE 1  AND age >= 20 AND age < 50 ORDER BY death_time DESC LIMIT 5;', '2024-07-18 12:44:48'

'This query took 6,146 miliseconds:  SELECT lives.id, display_id, player_id, name, age, generation, death_time, deepest_descendant_generation, servers.server FROM lineageServer_lives as lives   INNER JOIN lineageServer_users as users ON lives.user_id = users.id INNER JOIN lineageServer_servers as servers ON lives.server_id = servers.id   WHERE 1  AND death_time >= DATE_SUB( NOW(), INTERVAL 1 DAY ) ORDER BY lineage_depth DESC, death_time DESC LIMIT 5;', '2024-07-18 08:37:23'
@connorhsm
Copy link
Member Author

Does not appear we've missed any of OHOLs indexes, unfortunately wont be a simple fix then.

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

1 participant