Answer the question
In order to leave comments, you need to log in
What is the best approach to database design?
Which approach is more advantageous in the future, for example, there are tables "contacts" and "users" . Let them have +/- the same set of fields. contacts are users who have not yet paid for the service and cannot authenticate on the site. After payment, the contact is converted into a user.
I think that this approach is not optimal and it is better to make some kind of flag in the "users" table of the "status_id" type and immediately add clients to this table. And when authenticating, just check email, password and status_id. But I don't know how this model will behave when the threshold of 100k+ users is reached.
The whole point in a nutshell: what is better, faster etc to have 2 almost identical tables or one, but use some kind of status_id (index, of course) for sampling? Assuming that there are hundreds of thousands of records in the database.
Answer the question
In order to leave comments, you need to log in
what is better, faster etc to have 2 almost identical tables or one, but use some status_id (index, of course) for selection
Assuming that there are hundreds of thousands of records in the database.
But I also knew, and forgot, Hoare's dictum that premature optimization is the root of all evil in programming
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question