Ok. Now I see your point more clearly.

Proper indexing is essential in that key-value-case.

Actually, that 'parent'-table is needed, cause it contains main activity boolean.
I just forgot to add that and activity after that variable.

I had no idea of name of that approach.
It's just natural derivation after associative arrays and key-values in Memcache etc.

My fools dream is to put everything to db, even code.
Just a Apache module and conf to Apache, how to find code.
I think that it could make updates and backuping easier.
Ofc that code should be cached, but then servers could be even lighter. Cause it can work without hard drive (or ssd).

If one, like me, wants to balanced and redundant web-serving it would be great if servers are light and easily swappable.
Also there are quite significant power savings, when one can shut down some servers in quieter times.

One can save a lot compared normal one unit server in both power and cooling costs.


In reply to Re^6: How to interpolate sql-output by Seq
in thread How to interpolate sql-output by Seq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.