Index and Deleted

From: Anders Eriksson (anders.eriksson_at_morateknikutveckling.se)
Date: 01/24/05


Date: Mon, 24 Jan 2005 08:22:50 +0100

Hello!

I'm using ADO from VC++ to read/write a dBase IV database.
Connection string: _T("Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=tempdata;Mode=ReadWrite|Share Deny None;Extended Properties=dBASE
IV;Persist Security Info=False");

I have these columns:
 FIXNR STRING
 STATUS STRING
 DATA STRING (this is actually 120 different columns)

The database is indexed on FIXNR and on STATUS.

I then use this SQL to create a recordset
"SELECT * FROM TEMPDATA WHERE STATUS = 'Reg' ORDER BY FIXNR"

The application that creates the database and writes data to it is written
in Visual dBase and it will delete the record once I'm done with it.

If the database grows this strange thing will happen

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??

// Anders



Relevant Pages

  • Re: Connection types and speeds
    ... The memory used by holding the connection open is not ... All recordset inserts seen to consequently have 0ms execution time, ... actually written to the database while the code has regained control ... RecordsetClone of a form) when a transaction was rolled back, ...
    (microsoft.public.access.queries)
  • Re: Validate logins with ASP, MS Access and Cookies error
    ... return another column from the database that stores the users 1st name :-) ... 'create connection and recordset objects ... Set cnStr = Server.CreateObject ... ' validate variables against database ...
    (microsoft.public.inetserver.asp.db)
  • Re: Recordset problem
    ... This is why I'm trying to use Recordset. ... Dim strPrice As String ... >> Dim dbs As Database ... >You don't need to open the database object dbs before ...
    (microsoft.public.access.modulesdaovba)
  • Re: Validate logins with ASP, MS Access and Cookies error
    ... return another column from the database that stores the users 1st name ... 'create connection and recordset objects ... Set cnStr = Server.CreateObject ... ' validate variables against database ...
    (microsoft.public.inetserver.asp.db)
  • Re: Validate logins with ASP, MS Access and Cookies error
    ... return another column from the database that stores the users 1st name ... 'create connection and recordset objects ... Set cnStr = Server.CreateObject ... ' validate variables against database ...
    (microsoft.public.inetserver.asp.db)