-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Extremely slow Sqlite queries with Docker #392
Comments
Do you have access to a "real" Linux host? How many workouts are there in your database? |
I do not. 787 workouts. Sqlite file size is 330 MB. Do the binaries in the release get auto-built as well? Maybe I can try it without docker? EDIT:
EDIT 2:
For now I'll just use the binary. Let me know if there's anything I can do on my end to troubleshoot. May just be a "me" problem 😄 |
It's no secret wsl2 io is not optimal... |
True enough. With the other 30 containers I run written in Go, Python, etc...this is just the first slowness I've ran into for SQLite queries. |
Are any of those other containers using a SQLite database of similar size? |
Nothing quite as large it looks like. The two largest are around 60 MB. How large of a db do you have? Or do you use Postgres or something else? I would think ~800 activities is on the small side, but maybe I'm wrong? |
I use SQLite but on Linux; I also don't have that many activities. I did hear of people with multiple thousands, however. I will take a look at query caching at some point. I assume you have enough memory in your system? |
This may speed up queries on slower systems, or systems with bad IO. Ref: #392 Signed-off-by: Jo Vandeginste <[email protected]>
I merged a simple query cacher; if you have time, please upgrade and provide feedback! |
Seems snappier! The map loading is the only slow thing, but I'll test some more to see where the slowness may be (leaflet? heatmap? etc...) |
Did you find anything useful? |
Nothing obvious, but honestly I'm happy with it as is. Thanks so much for the hard work! |
Hey, just wanted to document my issues here, looking for ways to help troubleshoot. Running docker desktop via wsl2 on a windows host. I'm the only user. I am using bind mounts to the host, and I know there could be some slight deltas in performance, but the many other containers I run all do the same binding and I've had no issues.
compose file:
Every sqlite interaction is incredibly slow. Below are some snippets from it just restarting. I use watchtower to auto-update, so I'm always on the latest version.
Any thoughts on where to start?
The text was updated successfully, but these errors were encountered: