What the work logic of EraseInfoBaseData() method?

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

Hi,

I had an infobase. For some reason I had to erase the whole data from infobase. In 8.3 version there is method named "EraseInfoBaseData".

In syntax there is writen as

Quote
Description:

Deletes infobase data:
From the tables determined by metadata structure;
From the setting storage;
From history;
Of administrator infobase parameters;
From the user list.


Availability:

Server, thick client, external connection.
Note:

If called from a split session, the data are only removed from the data area determined by the specified separator values.
To avoid recording data of the removed area (e.g., saving form display settings), we recommend changing session parameters that determine data split immediately after calling this method.
Data can be removed by a user with "Administration" right.
Removal is possible if exclusive database or area access mode is set (the method SetExclusiveMode has been called) or an exception will be generated.

But before data erasing infobase size was 1.5Gb and after successfull erasing .1CD file size did not changed :). When entering application there is no data, but infobase size is 1.5 Gb :).

How I understand indeed platform does not erase. Only hides data from user ?

 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

Try to use command "Compressing Infobase tables" at "Administration\Verify and Repair..."

I think It may compress file

 
#3
People who like this:0Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

oo worked. Thanks. So how I get it I should do this everytime

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.