Subject | RE: [firebird-support] Query help - Email found in subject |
---|---|
Author | Leyne, Sean |
Post date | 2012-07-22T22:24:20Z |
Kjell,
I am afraid that there won't be much that can be done to avoid the basic problem.
Sean
> Trying to figure out a way to do a search/query with decent performance.What is the "selectivity" of Detail rows to Master (What % of Master don't have Details)?
>
> Table "Master" contains roughly 100 million records and table "Detail"
> contains roughly 200 million records.
> Unfortunately, this will cause a natural scan of the 100 million record
> "Master" table, and roughly 200 million subselects...
>
> Can anyone figure out a way to avoid a full table scan?
I am afraid that there won't be much that can be done to avoid the basic problem.
Sean