dbTalk Databases Forums  

multiple secondary keys

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss multiple secondary keys in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mejo Jose A
 
Posts: n/a

Default multiple secondary keys - 01-24-2008 , 07:03 AM






I've one primary database to which multiple secordary dbs are
associated. These secondary dbs supports duplicate keys. I want to set
multiple secondary keys for a single prinmary modification.
When I tried to set multiple secondary keys using the following steps.
1. set DB_DBT_MULTIPLE flag in returned Dbt of the callback function.
2. Set an array of Dbt as the data of the result Dbt of the callback
function.
3. Set the number of Dbts as the size of result Dbt of the callback
function.

After doing this I could not find the data updated in secondary db. It
works fine in single secondaray key modification.

Your reply will be very valuable for me.
Thanks in advance,
Mejo

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.