Re: Index and Deleted
From: Stephen Howe (stephenPOINThoweATtns-globalPOINTcom)
Date: 01/24/05
- Next message: Stephen Howe: "Re: get multivalued data from a Recordset"
- Previous message: SomeoneKnows: "Adding records to Oracle using VB6 class"
- In reply to: Anders Eriksson: "Index and Deleted"
- Next in thread: Anders Eriksson: "Re: Index and Deleted"
- Reply: Anders Eriksson: "Re: Index and Deleted"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 Jan 2005 17:46:29 -0000
> If the records IS NOT deleted it will take men 1 second to open a
recordset
> and read the first record in the recordset.
>
> If the records ARE deleted the same operation will take 350 seconds
>
> The database contained 25000 records (140MB).
>
> Anyone that understand why there is this difference in time??
I understand what goes on but not the difference in time. No doubt someone
can enlighten me as to why deleted records make this difference.
If you delete a record, it does not really go, it remains and can be
undeleted.
It is similar to Access in the deleted sense and it takes a Compacting
operation for Access to recover the disk space.
IIRC (and I have not used dBASE since 1987), dBase has an equivalent
concept of PACKing which really removes records. Your application should be
such that that before terminating a connection, if you know you have deleted
records from the database, it should PACKed. Do this and I am sure your
performance will come back.
I am not sure how you do this, but 5 minutes with Google will tell me the
answer.
Hope this helps
Stephen Howe
- Next message: Stephen Howe: "Re: get multivalued data from a Recordset"
- Previous message: SomeoneKnows: "Adding records to Oracle using VB6 class"
- In reply to: Anders Eriksson: "Index and Deleted"
- Next in thread: Anders Eriksson: "Re: Index and Deleted"
- Reply: Anders Eriksson: "Re: Index and Deleted"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|