a database implementation (data structure) for particular queries?
From: Ivan Shmakov <oneingray_at_gmail.com>
Date: Wed, 17 Oct 2012 14:38:53 +0700
Message-ID: <86mwzlczua.fsf_at_gray.siamics.net>
Date: Wed, 17 Oct 2012 14:38:53 +0700
Message-ID: <86mwzlczua.fsf_at_gray.siamics.net>
I wonder if there's a database implementation (or data structure, or an index) well suited for queries like the following: SELECT * FROM foo WHERE (a1 IN (a1a, ..., a1P) AND a2 IN (a2a, ..., a2Q) ... AND aN IN (aNa, ..., aNZ)); where a1, ..., aN are all but one of the table columns, and P, Q, ..., Z may vary (and are not necessarily equal to each other.) To note is that the amount of INSERT's into the structure is non-negligible when compared to the number of SELECT's. Also, I'd be interested in a quick way to compute an estimate (an upper bound) of the number of rows to be returned from the query above. TIA.
-- FSF associate member #7257Received on Wed Oct 17 2012 - 09:38:53 CEST