[Herddb-dev] Question file storage.

Enrico Olivelli eolivelli at gmail.com
Wed Jun 12 08:45:42 CEST 2019


Amit,

Il mer 12 giu 2019, 06:20 Amit Chavan <achavan1 at gmail.com> ha scritto:

> Hello,
>
> I was playing around with herddb to do some testing today. I create a very
> simple table ./herddb-cli.sh -q "CREATE TABLE amit(id int primary key, name
> string)". I see table meta data file, txlog file etc created for this
> table. I also inserted 2 to 3 rows into this table and I am able to see the
> txlog being appended by the transaction. What I don't see is the data
> actually being written to the disk for the table. The directory *dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table
> *is empty. When does the in-memory data get written to the disk? Is there
> a setting or does it occur during checkpoint ?
>

Data is written to the journal/commit log.
Data pages are swapped to disk:
- at checkpoint
- when the system is out of memory

Enrico

>
> Thanks,
> Amit
> _______________________________________________
> herddb-dev mailing list
> herddb-dev at lists.herddb.org
> http://lists.herddb.org/mailman/listinfo/herddb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment.html>


More information about the herddb-dev mailing list