Home Applications global-archiver

global-archiver

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
5
1 reviews
0
Awards
212
Views
20
IPM installs
2
0
Details
Releases (5)
Reviews (1)
Issues
Articles (1)
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.503 Apr, 2022
ObjectScript quality test
Category
Solutions
Works with
InterSystems IRIS
First published
02 Apr, 2022
Last edited
04 Apr, 2022
Last checked by moderator
26 Nov, 2024Works