Subject | Re: [firebird-support] Performance - Querying newly inserted records for processing - which better? |
---|---|
Author | Martijn Tonies |
Post date | 2004-03-10T09:56:37Z |
Hi Kenneth,
field from 'N' to 'P'.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> Which is faster to query for newly inserted records for some taskprocessing?
>inserted rows, 'P' for processed rows. Once processed, update this indexed
> METHOD 1 - Use a composite key with a field denoting 'N' for newly
field from 'N' to 'P'.
> METHOD 2 - Use another table to keep the IDs of newly inserted rowsI would go the Method 2.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com