Subject | RE: [ib-support] SELECT COUNT(*) ... - slow |
---|---|
Author | Ann W. Harrison |
Post date | 2002-04-06T16:36:55Z |
At 01:21 AM 4/6/2002 +0200, Tobias Giesen wrote:
all transactions - at least not in repeatable-read mode.
For reasons having to do mostly with bad housebreaking,
I guess, we feel that if a single transaction counts the
same table twice, it should get the same answer.
done it.
Regards,
Ann
www.ibphoenix.com
We have answers.
> > And the reason it doesn't, is that there may beUnfortunately, not all the committed rows are valid for
> > different numbers of rows for different concurrent
> > transactions.
>
>So what? It could maintain separate counters for each
>transaction, as well as a main counter for the committed
>rows. I'm sure it could.
all transactions - at least not in repeatable-read mode.
For reasons having to do mostly with bad housebreaking,
I guess, we feel that if a single transaction counts the
same table twice, it should get the same answer.
>However, this optimization feature doesn't seem to haveI assure you that if it had been possible, we would have
>been considered worth it.
done it.
Regards,
Ann
www.ibphoenix.com
We have answers.