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

Other database servers? #1710

Closed
laduke opened this issue Nov 9, 2015 · 5 comments
Closed

Other database servers? #1710

laduke opened this issue Nov 9, 2015 · 5 comments

Comments

@laduke
Copy link

laduke commented Nov 9, 2015

I was reading through the issues regarding new web UI, new REST api*, and I'm wondering, can a two different processes access the sqlite database at the same time? Would you not be able to "beet import" while the webserver was running?

I'm mostly wondering if anyone has tried migrating their db to postgres or mysql, and how it went. Is it even possible with whatever db driver beets is using?

@sampsyo
Copy link
Member

sampsyo commented Nov 9, 2015

Yes, multiple processes should be able to access the database concurrently. We use SQLite's transactions to make sure things don't go wrong.

I know some people have endeavored to port beets to a client/server database like Postgres, but that was a long time ago—I'm not sure if anyone actually got it working.

@bearcatsandor
Copy link

I know that for me, even with only 10k tracks, it can take a few seconds to return a query. Seeing as by the time i'm done importing i'll have around 25k, would using mysql be faster for those of us with large collections?

@sampsyo
Copy link
Member

sampsyo commented Nov 9, 2015

I'm actually skeptical that SQLite is the bottleneck—we would of course need to measure, but I would be much more likely to blame inefficient queries than the engine itself.

@jackwilsdon
Copy link
Member

Is there a reason you closed this @laduke? It still seems like a reasonable discussion.

@laduke
Copy link
Author

laduke commented Mar 22, 2019

I don't even remember what I was trying to do. Don't wanna create work for people. Sorry to create another github alert for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants