global-archiver

Downloads7
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

Get source data using database-level global ref

global-archiver

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")
ZPM installation
zpm "install global-archiver"
Rating
5 (1)
ObjectScript quality test
Passed
Updated on 06 October 2022
ObjectScript quality report
Category
Solutions
Works with
InterSystems IRIS
Tags
Info
Version
0.0.5
Last updated
2022-04-04
Repository
Open
Documentation
Open
License
Link