Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Database question.....

Reply
Thread Tools

Database question.....

 
 
John D.
Guest
Posts: n/a
 
      08-07-2003
I have a small (fewer than a few thousand records) database with the
following properties:

Each record has four fields: A, B, C, D.
Fields A and B are unique:
there is one B for every A and one A for every B.
Fields C and D are not unique.
Sometimes I need to use A as the key, other times B is the key:
I use A to return B, C, D and also B to return A, C, D.
The items may all be represented as short ASCII strings.

Currently I am storing this in a 100KB file and converting this to two
dictionaries. I am reading and writing the entire file to update single
records, which is inefficient. I am thinking about using anydbm, but then
how do I do the two-way dictionary lookup? Would I have to store the whole
database twice? What if I had ten items, would I have to store it ten
times? Is this what a relational database allows?

John



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
exporting an excel file from database; making changes to excel file and updating the database by importing it back Luis Esteban Valencia ASP .Net 1 01-12-2005 12:28 AM
Re: Software Developer to transcribe Oracle database into Access database Fluker MCSD 0 07-09-2003 01:20 PM
Re: Software Developer to transcribe Oracle database into Access database Guy Cox MCSD 1 07-09-2003 08:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57