dbTalk Databases Forums  

Split a Database into multiple databases

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


Discuss Split a Database into multiple databases in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
abansriyar@gmail.com
 
Posts: n/a

Default Split a Database into multiple databases - 10-07-2006 , 08:53 AM






Hi All,

I have a database which has terms (english words) as key values and I
need to take up all keys from the database and segregate them into
multiple databases according to the first letter of the key values.

For example if the database has the following keys,
1. abroad
2. async
3. method
4. mind
5. zebra

What I need to do is create three databases with abroad, async in one
method, mind in another and zebra in another. I could do it using
cursor and taking up one key value at a time, comparing the first
alphabets and storing the database records to the concerned database.

But I have thousands of records and it becomes extremely intensive to
do it that way. Could anyone suggest a cleaner and efficient solution.

Thanks,
Animesh
-MirrorZen Software


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 - 2012, Jelsoft Enterprises Ltd.