Discussion:
Execution of Excise does not reduce the disk size.
笠井啓太
2017-08-03 05:58:42 UTC
Permalink
Execution of Excise does not reduce the disk size.

How can I reduce the disk size?


version: datomic-pro-0.9.5561
backstorage: dynamodb

The code is as follows.

package datomic.samples;

import datomic.Connection;
import datomic.Database;
import datomic.Peer;
import datomic.Util;

import java.util.concurrent.ExecutionException;

public class ExcisionData {
public static void main(String[] args) throws ExecutionException,
InterruptedException {
String uri =
"datomic:ddb://{aws-region}/{dynamodb-table}/{db-name}";
Connection conn = Peer.connect(uri);

conn.transact(Util.list(Util.map(":db/id",
Peer.tempid(":db.part/user"),
":db/excise", ":excisiontest/number",
":db/excise", ":excisiontest/comment"))).get();

conn.gcStrage(new Date());

Peer.shutdown(true);
}
}
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
笠井啓太
2017-08-04 00:18:33 UTC
Permalink
Hi,Jaret

Thank you for your reply.

Will the data retracted one month ago be subject to gcStrage?

Thanks,
Keita
Hi,
Excision is not intended to be used to reduce disk size. It is an
intended feature for removing data for a privacy reason or when required by
law not to retain data beyond a certain point.
http://docs.datomic.com/excision.html
If you are interested in cleaning up space on disk you can ensure you are
utilizing garbage collection (I noticed a call with "gcStrage") with a more
http://docs.datomic.com/capacity.html#garbage-collection
If you utilize backup/restore the size of your DB backup is roughly the
size of your DB on disk without garbage.
Thanks,
Jaret
Post by 笠井啓太
Execution of Excise does not reduce the disk size.
How can I reduce the disk size?
version: datomic-pro-0.9.5561
backstorage: dynamodb
The code is as follows.
package datomic.samples;
import datomic.Connection;
import datomic.Database;
import datomic.Peer;
import datomic.Util;
import java.util.concurrent.ExecutionException;
public class ExcisionData {
public static void main(String[] args) throws ExecutionException,
InterruptedException {
String uri =
"datomic:ddb://{aws-region}/{dynamodb-table}/{db-name}";
Connection conn = Peer.connect(uri);
conn.transact(Util.list(Util.map(":db/id",
Peer.tempid(":db.part/user"),
":db/excise", ":excisiontest/number",
":db/excise", ":excisiontest/comment"))).get();
conn.gcStrage(new Date());
Peer.shutdown(true);
}
}
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jaret Binford
2017-08-04 13:39:35 UTC
Permalink
Hi Keita,

Datomic is accumulate only and retractions state that an assertion no
longer holds at the some later point in time. Retractions are not removed
from the database and are accessible by passing in a t value when the
assertion was true. If you are looking to completely remove the datoms
then I would recommend transacting over the datoms you would like to keep
into a new db and then deleting the old db and call gc-deleted-dbs for the
old db(s). GcStorage will target garbage segments that accumulate, but
retractions are not garbage.

For more information on garbage collection for deleted dbs:

http://docs.datomic.com/capacity.html#garbage-collection-deleted


Thanks,
Jaret
Post by 笠井啓太
Hi,Jaret
Thank you for your reply.
Will the data retracted one month ago be subject to gcStrage?
Thanks,
Keita
Hi,
Excision is not intended to be used to reduce disk size. It is an
intended feature for removing data for a privacy reason or when required by
law not to retain data beyond a certain point.
http://docs.datomic.com/excision.html
If you are interested in cleaning up space on disk you can ensure you are
utilizing garbage collection (I noticed a call with "gcStrage") with a more
http://docs.datomic.com/capacity.html#garbage-collection
If you utilize backup/restore the size of your DB backup is roughly the
size of your DB on disk without garbage.
Thanks,
Jaret
Post by 笠井啓太
Execution of Excise does not reduce the disk size.
How can I reduce the disk size?
version: datomic-pro-0.9.5561
backstorage: dynamodb
The code is as follows.
package datomic.samples;
import datomic.Connection;
import datomic.Database;
import datomic.Peer;
import datomic.Util;
import java.util.concurrent.ExecutionException;
public class ExcisionData {
public static void main(String[] args) throws ExecutionException,
InterruptedException {
String uri =
"datomic:ddb://{aws-region}/{dynamodb-table}/{db-name}";
Connection conn = Peer.connect(uri);
conn.transact(Util.list(Util.map(":db/id",
Peer.tempid(":db.part/user"),
":db/excise", ":excisiontest/number",
":db/excise", ":excisiontest/comment"))).get();
conn.gcStrage(new Date());
Peer.shutdown(true);
}
}
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...