Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a lot to your question, and it would help to have more information, but here are some of my thoughts:</p> <ul> <li>The language interfacing with the database is generally not a factor -- you should work as hard as possible to limit the number of connections and messages required (i.e. use join instead of communicating with PHP twice), but since good design is doing as much data selection/sorting work on the DB side as possible (because <a href="http://en.wikiquote.org/w/index.php?title=Thumb_Wars&amp;section=2" rel="nofollow">that's what they're for</a>)</li> <li>If all of the tables have the same structure, then you're often better off with one table when dealing with massive selects -- <code>UNION</code>, at least in my experience, is generally a slow beast.</li> <li>If you're really concerned about accessing only a small subset of the data at once, then I would recommend keeping everything in fewer tables and create views.</li> <li><code>Don't care about table management and simplicity of database</code> is a bad policy. All of the best practices of programming are true for db design. Remember, someone who has no idea what you were thinking will inherit this project, and that might be you.</li> </ul> <p>Personally, I think that quite a few of us have had experience with the 1M line table, and I know that I, for one, would not have wanted to deal with that as a series of <code>UNION</code>s, <code>OR</code>s and <code>JOIN</code>s. At least, not when it was all the same table design.</p>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    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