Re: update 500000 records with adodb.recordset resize the mdb from 140M to 2G
- From: "Brendan Reynolds" <anonymous at discussions dot microsoft dot com>
- Date: Mon, 25 Apr 2005 09:08:05 +0100
> 2) I un a VB6 program and load with ADODB the table with 500.000 records.
....
> 4) I run an update command with ADODB under VB on each 500.000 records.
Why not carry out the modification at the same time as the initial loading?
--
Brendan Reynolds (MVP)
"00090" <706504N@xxxxxxxxxxxxx> wrote in message
news:Xns9642E62EA14FD0140504NA02619@xxxxxxxxxxxxxxxx
> "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx> wrote in
> news:##PpvI8RFHA.2788@xxxxxxxxxxxxxxxxxxxx:
>
>> Each UPDATE causes a delete and insert. If you update every row, you
>> double the size of the database (at least). The upper limit of a JET
>> database is 2GB. It sounds like you're trying to carry a ton of coal
>> in Tupperware.
>>
>
>
> thanks for the answer
> I understand this but as I wrote in another message :
>
> 1) I create a new database with 1 table , the Mdb file size is about 256K
> 2) I un a VB6 program and load with ADODB the table with 500.000 records.
>
> 3) I use the compact commands within access : the mdb size is about 150
> Mega
>
> 4) I run an update command with ADODB under VB on each 500.000 records.
> the
> program stop with the 2G limit error and the Mdb size is 2.04 Giga
> 5) I compact the database again and the mdb is about 150 mega
>
> conclusion : updating each 500.000 record produce a wasted space of about
> 12 times the initial table space. and THIS is the problem.
>
> normally, update a record can produce the fact that access need to move
> the record somewhere else in the tablespace. such behaviour is common
> with other database especially if the modifications made on the record
> need more textual space. that is updating 500.000 records with produce 2
> x 500.000 record space. NOT 12 x 500.000
.
- References:
- Re: update 500000 records with adodb.recordset resize the mdb from 140M to 2G
- From: William \(Bill\) Vaughn
- Re: update 500000 records with adodb.recordset resize the mdb from 140M to 2G
- Prev by Date: DataColumn.Expression and an ComboBox
- Next by Date: Re: JRO replacement?
- Previous by thread: Re: update 500000 records with adodb.recordset resize the mdb from 140M to 2G
- Next by thread: Re: update 500000 records with adodb.recordset resize the mdb from 140M to 2G
- Index(es):
Relevant Pages
|