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

Checking logs takes super long. #203

Open
3 tasks done
timtijmen2 opened this issue Apr 5, 2023 · 4 comments
Open
3 tasks done

Checking logs takes super long. #203

timtijmen2 opened this issue Apr 5, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@timtijmen2
Copy link

Expected behavior

Logs showing up when i look for them.

Observed/actual behavior

When i use /ledger search on anything no matter how small it will often take 5-10 minutes to actually show up.
This also happens with the inspect function.

Steps/models to reproduce

/ledger search range:10 action:item-remove
ledger inspect and then clicking on a block

What operating system are you running

Windows

Minecraft version

1.19.4

Ledger version

1.2.7

Logs

none aplicable

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

No response

@timtijmen2 timtijmen2 added the bug Something isn't working label Apr 5, 2023
@HyperPaint
Copy link

HyperPaint commented Jan 3, 2024

The error still persists. Discovered full scan queries on mysql. They are not executed at all, because... 1 million records are being scanned

@HyperPaint
Copy link

Example

SELECT COUNT(*) FROM actions INNER JOIN ActionIdentifiers ON ActionIdentifiers.id = actions.action_id INNER JOIN worlds ON worlds.id = actions.world_id LEFT JOIN players ON players.id = actions.player_id INNER JOIN ObjectIdentifiers oldObjects ON actions.old_object_id = oldObjects.id INNER JOIN ObjectIdentifiers ON actions.object_id = ObjectIdentifiers.id INNER JOIN sources ON sources.id = actions.source WHERE (actions.x BETWEEN 1213 AND 1231) AND (actions.y BETWEEN 124 AND 142) AND (actions.z BETWEEN 197 AND 215) AND (worlds.identifier = 'minecraft:overworld')

There is no date in query, as the result it costs 66000 in mysql

@HyperPaint
Copy link

HyperPaint commented Jan 4, 2024

With date this query costs 66000 too

@Lord-Voidy
Copy link

I have same bug. Everything is exactly as HyperPaint wrote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants