Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
Online Copy of an Unlimited Storage Database
Note
This operation is available from version 7.
The following steps can be used to copy an unlimited storage database whose long-term historical contents are kept on external object storage, such as Amazon S3.
Step 1: Create a milestone in the source database.
This flushes all data prior to that point to external storage.
Step 2: Copy the bucket containing the database files to a new location.<root-path>.
The <root-path> is the path used when the database was created, which should include a bucket and optionally a path within the bucket.
Step 3: Delete the lock file(s) that are located under the <root-path>/<storage-id>/storage_ path.
Remove all files under this path.<storage-id> is a two-part number of the format <part1>_, which can be manually obtained from the information_ table.
Step 4: Attach the new copy of the bucket at the desired milestone.
Example:
Suppose in the database DB1, a user accidentally deleted all rows from the table F for CUSTOMER_
To recover these rows online, do the following:
1.
CREATE MILESTONE "copy_point";
2.
3.
4.
ATTACH DATABASE DB1 AS DB2 AT TIME '2022-02-10 12_59_00';5.
INSERT INTO db1.f SELECT * FROM DB2.f WHERE customer_id = 1000;
Last modified: