Article View: borland.public.cppbuilder.database.multi-tier
Article #1190DBF & MDX Index Rebuild Problems
From: Furno Gianluca
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
32 lines
1533 bytes
1533 bytes
Hi boys, I'm using DBF DBase IV compatible tables with .MDX type indexes in my application I have a problem using the DbiRegenIndexes function. The sequence that unslash the problem is the following : - I insert a lot of records ( The indexes are well updated ) - I delete some records from the table ( I can see the '*' mark at the start of the record wich means that the record was correclty deleted in the DBF file) - I launch the DbiRegenIndexes function ( to simulate a lost of sync between Table <-> Index ) ----- Now i observe that inside the rebuilded index still contains the deleted KEYS ( Why?) ---- Now, at this point , If i try to insert the same KEY of a deleted KEY, the system throw an exception ( DUPLICATE UNIQUE KEY EXCEPTION OR SIMILAR ) Do i perform some wrong operations ? What is the right operation sequence to Delete and Re-Insert records with the same INDEXED KEY and how i can perform a safe index rebuiding ? Please help me .... Thanks, Furno Gianluca info@microshadow.com
Technical Details
Message-ID:
<38da2da2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,53e5b6a38c35b8bf,start X-Google-Attributes: gidfcd2b,public From: "Furno Gianluca" <info@microshadow.com> Subject: DBF & MDX Index Rebuild Problems Date: 2000/03/23 Message-ID: <38da2da2@dnews> X-Deja-AN: 601318584 X-Trace: 23 Mar 2000 06:43:46 -0800, 151.21.110.101 Organization: MicroSHADOW Research Newsgroups: borland.public.cppbuilder.database.multi-tier X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3