Note that there are some explanatory texts on larger screens.

plurals
  1. PODatabase scalability: Which is more important, size of table or number of queries?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThere is a lot more to scalability than either of these factors. Load on server, number of concurrent client, indexing strategy, caching strategy and many more factors go into it. This question is not really answerable.
      singulars
    2. COThe answer in this case is most likely going to be "it depends on which database + version + indexes you are using (+ how much memory is available to your database) - so profile and find out". Both structures only require a single query to pull questions and answers, and both select statements *can* be done with a join.
      singulars
    3. CO"The downfall would be that the tags and title fields aren't used by Answers" -- Yes. **So don't do that.** Start with a "good" normalized database design. The problems will come, as will the solutions. Starting with a "good base" will reduce the number of problems that need to be dealt with and increase the chance that the solutions can focus entirely on the real problem and not something needlessly introduced. (The size of the table is only terribly relevant if indexes' *can't* "select out" the subset of rows actually required for query.)
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload