Subject | Re: [firebird-support] What programming languages and toolkits do you use to access Firebird? |
---|---|
Author | Martijn Tonies |
Post date | 2008-10-01T14:43:02Z |
> >> >> This SELECT Count(*) problem is really incredible. I can understandwould
> >> >> concurent
> >> >> transactions see different versions of the same table. Why is it
> >> >> difficult for every
> >> >> of these versions to also have their own row count ?
> >> >
> >> > Because such count would have to be kept in system tables, and it
> >> > mean versioning system tables - which has proven to be tricky so far.table
> >>
> >>
> >> How about letting the system tables reflect the base version of the
> > anddata
> >> put the per-transaction row-count toghether with the version-specific
> > ofno
> >> the table ?
> >
> > No offence, but this only makes sense if you do a "select count(*) from
> > table".
> >
> > That is: no specific columns (cause then the result can be different),
> > WHEREAs I said...
> > clause.
> >
> > Why go through all this trouble for something that is, per transaction,
> > hardly in use?
> Well, the OP seems to want his tables displayed in some grid control,This is the -single- situation where this would make sense. It won't
> which needs a scroll bar, and someone else reported an 8 milion rows
> table needs about 12s to get the row count.
ever ever make any sense outside this particular situation cause
normally you would display a resultset of a query, which hardly ever
is a complete display of all rows from a single table.
> I believe many applications can be made to work without reading the rowMartijn Tonies
> count in advance, and I would do this every time I can, but if I need the
> row count for a base table I would still expect to have it in a reasonable
> amount of time.
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com