Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Berkely DB > Secondary Indic...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 1720 of 1800
Post > Topic >>

Secondary Indices

by Mike <spamdump@[EMAIL PROTECTED] > Mar 4, 2007 at 12:25 PM

I'm starting to use Berkeley-DB on a Linux system.

Is there a way of permanently associating a secondary index with a 
primary rather than having to do it explicitly in each application?

I'm looking for the ability to add indices to a database, and 
maintaining them, without have to recompile my applications.  I can 
define the keys in terms of integer pairs (location and length of 
field in the record) so I can write a generic "callback" function to 
extract the key.  I could maintain a list of indices in a file and 
write an "open database" function to open the primary and associate 
the secondaries at run time.

Ideally, I'd like to get something similar to the system of "physical" 
and "logical" files used on the AS400 (for anyone familiar with such 
machines).

Any suggestions (other than "get yourself an AS400 then" ;-) ) would 
be much appreciated.

-- 
Mike
 




 7 Posts in Topic:
Secondary Indices
Mike <spamdump@[EMAIL   2007-03-04 12:25:35 
Re: Secondary Indices
Florian Weimer <fw@[EM  2007-03-04 16:00:17 
Re: Secondary Indices
Mike <spamdump@[EMAIL   2007-03-04 15:34:46 
Re: Secondary Indices
mailer-daemon@[EMAIL PROT  2007-03-04 16:08:00 
Re: Secondary Indices
Mike <spamdump@[EMAIL   2007-03-04 16:49:20 
Re: Secondary Indices
Florian Weimer <fw@[EM  2007-03-04 20:58:59 
Re: Secondary Indices
Mike <spamdump@[EMAIL   2007-03-05 18:09:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 15:58:27 CDT 2008.