Home Applications global-archiver

global-archiver

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
170
Views
19
IPM installs
2
0
Details
Releases
Reviews
Issues
Pull requests
Articles
This is a tool to move a part of a global from a database to ano

What's new in this version

Get source data using database-level global ref

global-archiver

Quality Gate Status

This is a tool to move a part of a global from a database to another database.

Article on DC-EN.

Sample repository with mirroring and ECP: global-archiver-sample

Run with Docker

Build:

docker-compose build --no-cache

Start container :

docker-compose up -d

Installation ZPM

zpm "install global-archiver"

How to Test it

Create a database named “ARCHIVE”

Do ##class(lscalese.globalarchiver.sample.DataLog).CreateDB("ARCHIVE")

Open IRIS terminal:

Generate 10 000 records in a sample table.

Do ##class(lscalese.globalarchiver.sample.DataLog).GenerateData(10000)

Get the last id older than 30 days:

Set lastId = ##class(lscalese.globalarchiver.sample.DataLog).GetLastId(30)

Copy data older than 30 days to the ARCHIVE database:

Set Global = $Name(^lscalese.globalarcCA13.DataLogD)
Set sc = ##class(lscalese.globalarchiver.Copier).Copy(Global, lastId, "ARCHIVE")

Delete data from the source database:

Set sc = ##class(lscalese.globalarchiver.Cleaner).DeleteArchivedData(Global,"ARCHIVE")
Made with
Install
zpm install global-archiver download archive
Version
0.0.504 Apr, 2022
ObjectScript quality test
Category
Solutions
Works with
InterSystems IRIS
First published
02 Apr, 2022
Last checked by moderator
27 Jun, 2023Works