[NEW] Valentina 2.0.5 adds Vdatabase.Clone().

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jul 14 13:12:17 CDT 2005


Hi All,

* Please test this new feature against of your databases and let us know.
* You can do this easy using example Api_way/Database_Clone.

This is very nice feature, and it can be used to solve several tasks:

1) this can be used to do REPAIR of damaged database.
    
    Up to know we have use for this XML dump, but Clone() will be much
faster way, because XML can be e.g. 1GB for 200MB database. When you use
Clone() you will need only another 200MB to build new database. Clone() do
binary copying of record values without conversion into text.


2) Clone() have all the same side-effects of dump/load:
    
    - all deleted records are ignored.
    - all values of ObjectPtr fields and BinaryLinks are corrected
        (because deleted records was ignored).

    So cloned database in general case will be as compact as possible
    for your actual data.

    This is good if you prepare database to be located on CD.
    

3) Clone() can be used also to change some parameters of Database which you
cannot change runtime. For example:
    db.mode, db.segmentSize, Byte swapping, ...


4) If you use db.Mode = 1, i.e. You keep your database in the single file,
Then up to now you did not have a way to easy to make a new fresh db with
the same structure. Now you can do this.

Jochen, this feature "Clone..." should be added into menu File of Valentina
Studio Application. It needs show dialog with some options.



TODO:

** it is possible add Log file produced by Clone() where it will write down
info about any found corrupted records/values. So user can see what records
was not able to repair.

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list