b04rd / flask_reddit

Reddit clone in flask + python. Deployed w/ nginx + gunicorn. View site:
http://reddit.lucasou.com
MIT License
1 stars 2 forks source link

Check if other RDBMS are supported #4

Open yl3dy opened 8 years ago

yl3dy commented 8 years ago

Surely MySQL was a bad choice. See if PostgreSQL can be used as a drop-in replacement.

Nable80 commented 6 years ago

Erm, could you clarify what's wrong with current MySQL setup? IMHO, one shouldn't try solving problems in application's architecture (e.g. just look at thread hotness calculation, that brutal crontab task) just by switching to a DBMS with more complex query optimization algos - DB schema and queries should optimized first. PostgreSQL is definitely better than MySQL but (IMHO, again) both of them are overkill here, I'm not aware about anything in this task that can't be done with pure ANSI SQL (and any DB engine that is compatible with it).

yl3dy commented 6 years ago

It isn't that MySQL is ruining the architecture (which is very bad regardless of used DBMS), but its treating of UTF-8, specially 4-byte symbols, is quite strange. MySQL was used because of legacy reasons, and it should be possible to replace with anything SQLAlchemy supports, but I haven't tried that yet. Anyways, it is a pretty much low priority task now as the current setup works somehow satisfactory.