Ask HN: SQLite, MySQL, or PostgreSQL?
My application is storing ~12GB of federal election data for personal research purposes. I simply want to be able to search for queries without having to wait several hours for the result (in contrast with my previous solution, which was searching the data line-by-line with python).
10 comments
[ 4.3 ms ] story [ 19.9 ms ] threadSqlite has the advantage of not needing to install a server, which makes it easier to bring it up as your datastore.
I use both but give preference to Postgres/PostGIS if I have to do mapping things.
MySQL is never a consideration for me.
I am honestly thinking of reworking my project (for the 10th time, lol) to convert a bunch of interconnected list-of-objects in Python into SQL databases. I'm talking about data on tens of thousands of political candidates, data on hundreds of thousands of political committees/SuperPACS, data on hundreds of federal elections, etc.
I also just remembered that I have a MySQL server already installed on my computer.
Given that I am working with several gigabytes of highly interconnected data, would it be worth installing PostGres on my machine?
[1] https://bookdown.org/ndphillips/YaRrr/rdata-files.html
[2] https://cran.r-project.org/web/packages/data.table/vignettes...
12GB is not a lot of data, not sure what was happening with your python that it took several hours. Don't get me wrong though, SQL seems like it could be the right tool for this use case.