in reply to Re: Feasability of quick generation of complex report from large db?
in thread Feasability of quick generation of complex report from large db?
But I think, maybe, some miscommunications.
To put it into similar terms:
So, all the info could have been put into one big 30,000 row x 12,000 column table, and then just query
SELECT company WHERE (group_a = 1 and product_class_C = 1);
Originally, there was only going to be a requirement to produce a half-dozen cross-references at a time. So, came the idea of the reverse-index tables - easy and quick to identify the ten tables needed, find the intersection of these little <= 10Kb tables that are often only a few hundred rows long, and sum the size-factors.
But THEN someone said "Hey, that's great - and fast - here, do that for this report of 350 intersections."
Update: I appear to have at least partially answered my own question - even if it was done the other way, there'd still be 350 queries to run, except each one on a full 30k-row x 12k column table!
|
|---|