Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > What the work logic of EraseInfoBaseData() method?

Forum

Search UsersRules
What the work logic of EraseInfoBaseData() method?
#1
Interested
Points:: 0
Joined:: Apr 5, 2012

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 ?

Profile
#2
Active user
Points:: 0
Joined:: Sep 26, 2012

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

I think It may compress file

Profile
#3
Interested
Points:: 0
Joined:: Apr 5, 2012

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.