Answer the question
In order to leave comments, you need to log in
What is the best way to organize a database of a web service such as "home accounting"?
I wanted to implement what is called out of interest and for experience, a web service for doing home accounting.
There are many such applications, the functionality for users usually looks like this in general terms:
Answer the question
In order to leave comments, you need to log in
prefixes in the names of tables with data of this type:
user1_operations
user2_operations
Greetings, I would do it the way you described, because the options for creating separate tables or a database are not suitable. Imagine then what will be the torment with migration.
In your case, you need to start with your architecture, in addition, you can always use the cache and do mysql replication, to start the master-slave.
Thus, queries will be executed in the same way to the database, but it will be cached, for example (for a day, and if a change occurs, reset the cache by this key).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question