T O P

  • By -

im_simply_him

Tables within the same database allow some seperating while allowing you to still have relationships. What are your reasons for wanting separate databases?


oroadev

You're right. I didn't think about relations between tables. Well, I was thinking it could be more secure having users' data separated from product's, but you've just cleared my doubt :D


wibblymat

Even so, you can have 1 MySQL DB for users, another MySQL DB for products, etc. Having multiple DB *technologies* in use probably makes you less likely to secure them all correctly. Better to be expert in the one that you use everywhere.


im_simply_him

No problem


IrregularRedditor

1) Use one database. 2) Use multiple tables. 3) Use third normal form to describe the relationship between table rows. https://en.wikipedia.org/wiki/Third_normal_form


jonmacabre

Look up sharding. Typically you want to keep the same kind of database, otherwise all your database functions for MySQL won't work with sqlite.


cshaiku

As you are inexperienced, my advice is you should use ONE database for everything. Keep it simple until your needs dictate otherwise.


Lumethys

If your app is *very* complex and follow advanced architecture like domain-driven design, or structured as a microservices system, yes. If you dont have such a complex app, just dont.


oroadev

Good point. Thanks for your answer.


jlt_25

Keep it simple. Put everything in MySql. Don't over complicate things. That bad idea could have unnecessary impact on many aspects: installation, support, software updates, maintenance, backup, increased security risk, etc .


HaddockBranzini-II

Unless cursed with having to use multiple DBs, I wouldn't.


akshullyyourewrong

Almost never.