home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!ukma!bogus.sura.net!opusc!usceast!sridhar
- From: sridhar@cs.scarolina.edu (M. A. Sridhar)
- Subject: Record handles in database engines
- Message-ID: <sridhar.728087423@fir.cs.scarolina.edu>
- Keywords: Record handles, paradox, indices
- Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
- Organization: USC Department of Computer Science
- Date: 26 Jan 93 22:30:23 GMT
- Lines: 36
-
- I recently began some work with relational databases, and wrote a
- little toy database engine. I assumed the model that every record
- (tuple) in a table (relation) has a unique handle; this handle can,
- for instance, be the disk offset at which the record is stored. The
- key property is that the handle is _fixed_, independent of other
- records. This allows me to build indexes and cross-indexes and the
- like using the value of the handle in the index.
-
- Then I found out that the Paradox engine does not use this model.
- Specifically, it gives you a record _number_, not a _handle_; so if
- you delete record number i, then the numbers of all subsequent records
- are reduced by 1 automatically! This means that I cannot use the
- record numbers it gives me for my own indexes, because the index will
- be invalidated as soon as a single record is deleted. So I essentially
- cannot build my own indexes -- I can only use Paradox's indexing
- mechanisms. (Of course, I can get around this be remembering the
- deleted record numbers and adjusting the contents extracted from the
- indexes, but that's beside the point.)
-
- I am quite surprised (really, shocked) by this behavior. I thought the
- notion of a record handle was pretty standard in the database domain.
- Am I wrong? Do the other database engines such as Informix or FoxPro
- support the notion of a record handle -- whose value is not affected
- by other records in the table? Can one create one's own indexes other
- than the mechanisms supported by these engines?
-
- Thanks in advance for your info and comments.
-
- Sridhar
-
-
- --
- M. A. Sridhar |
- Department of Computer Science | sridhar@usceast.cs.scarolina.edu (Internet)
- University of South Carolina | (803) 777-2427 (Ma Bell)
- Columbia, SC 29208 | (803) 777-3767 (Fax)
-