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


Programming > Clipper Visual-Objects > Re: CDX index c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 10 Topic 11363 of 11631
Post > Topic >>

Re: CDX index corruption?

by "Stephen Quinn" <stevejqNO@[EMAIL PROTECTED] > May 1, 2008 at 03:47 PM

Bert

After im****ting your data the index may be *unbalanced* and re-creating
them 
causes a rebuild of the internal tree (to become *balanced*).

A couple of things:-
    Why are you using Clipper syntax when you have a Server defined??
    Why are you using 2 index files instead of 2 TAGS (ie 1 index file)??

By using a single index file (with TAGS) you have no need to use the 
Setindex() method/function.

If you use a Server there is NO NEED to use CLIPPER syntax at all
I suggest you forget the DB?? functions even exist in VO

> DBCREATEINDEX("Ing_IngNr","INGRNR",{||INGREDIENT->INGRNR})
> DBCREATEINDEX("Ing_Ingred","INGREDIENT",{||INGREDIENT->INGREDIENT})
Don't use the ALIAS as part of your index expression, there is no
guarantee 
that the server will use that alias when you open it (definately won't be
if 
you open it more than once in the same app).

> I made sure that I delete the index files before building the index,
like 
> I read in this NG.
The reason for that is:
If you recreate the indices/TAGS without first deleting the file(s) the
old 
*TAG* is marked as obselete and the new one APPENDED to the end of the
file 
and set as the active one. (it's called index bloat) (even though your not

using TAGS the effect is still the same)

CYA
Steve
 




 10 Posts in Topic:
CDX index corruption?
"Bert Bonnemaijers&q  2008-05-01 16:52:31 
Re: CDX index corruption?
"Stephen Quinn"  2008-05-01 15:47:41 
Re: CDX index corruption?
"Bert Bonnemaijers&q  2008-05-01 21:00:09 
Re: CDX index corruption?
D.J.W. van Kooten <pub  2008-05-01 21:33:37 
Re: CDX index corruption?
"Bert Bonnemaijers&q  2008-05-01 23:17:54 
Re: CDX index corruption?
"Geoff Schaller"  2008-05-01 23:51:48 
Re: CDX index corruption?
"Stephen Quinn"  2008-05-02 03:28:09 
Re: CDX index corruption?
"Bert Bonnemaijers&q  2008-05-02 23:27:43 
Re: CDX index corruption?
Karl Faller <k.faller_  2008-05-03 14:22:23 
Re: CDX index corruption?
"Bert Bonnemaijers&q  2008-05-03 22:46:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Sep 7 2:38:04 CDT 2008.