<div dir="ltr"><div dir="ltr">Thanks, Enrico.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 12, 2019 at 2:34 PM &lt;<a href="mailto:herddb-dev-request@lists.herddb.org">herddb-dev-request@lists.herddb.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send herddb-dev mailing list submissions to<br>
        <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:herddb-dev-request@lists.herddb.org" target="_blank">herddb-dev-request@lists.herddb.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:herddb-dev-owner@lists.herddb.org" target="_blank">herddb-dev-owner@lists.herddb.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of herddb-dev digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Question file storage. (Amit Chavan)<br>
   2. Re: Question file storage. (Enrico Olivelli)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 12 Jun 2019 13:03:02 -0700<br>
From: Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt;<br>
To: <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
Subject: Re: [Herddb-dev] Question file storage.<br>
Message-ID:<br>
        &lt;CADsOBjNQEi7_RvW+iLNLPHj40GS8gtvns=<a href="mailto:7UXEbHRX58F%2Ba5mw@mail.gmail.com" target="_blank">7UXEbHRX58F+a5mw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Thanks. Followup question. How do I replay the transaction log to recreate<br>
the data?<br>
In order for the data to be replayed on a new server, you will also require<br>
the table metadata(schema)? Is there a command line tool to do that?<br>
<br>
On Wed, Jun 12, 2019 at 3:00 AM &lt;<a href="mailto:herddb-dev-request@lists.herddb.org" target="_blank">herddb-dev-request@lists.herddb.org</a>&gt; wrote:<br>
<br>
&gt; Send herddb-dev mailing list submissions to<br>
&gt;         <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt;<br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;         <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;         <a href="mailto:herddb-dev-request@lists.herddb.org" target="_blank">herddb-dev-request@lists.herddb.org</a><br>
&gt;<br>
&gt; You can reach the person managing the list at<br>
&gt;         <a href="mailto:herddb-dev-owner@lists.herddb.org" target="_blank">herddb-dev-owner@lists.herddb.org</a><br>
&gt;<br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than &quot;Re: Contents of herddb-dev digest...&quot;<br>
&gt;<br>
&gt;<br>
&gt; Today&#39;s Topics:<br>
&gt;<br>
&gt;    1. Question file storage. (Amit Chavan)<br>
&gt;    2. Re: Question file storage. (Enrico Olivelli)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Tue, 11 Jun 2019 21:19:19 -0700<br>
&gt; From: Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt; Subject: [Herddb-dev] Question file storage.<br>
&gt; Message-ID:<br>
&gt;         &lt;CADsOBjM-WjEZms1-ddY9RHs=8fy9GkNcXY=bP64sG-bTdsV2=<br>
&gt; <a href="mailto:Q@mail.gmail.com" target="_blank">Q@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I was playing around with herddb to do some testing today. I create a very<br>
&gt; simple table ./herddb-cli.sh -q &quot;CREATE TABLE amit(id int primary key, name<br>
&gt; string)&quot;. I see table meta data file, txlog file etc created for this<br>
&gt; table. I also inserted 2 to 3 rows into this table and I am able to see the<br>
&gt; txlog being appended by the transaction. What I don&#39;t see is the data<br>
&gt; actually being written to the disk for the table. The directory<br>
&gt;<br>
&gt; *dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table<br>
&gt; *is empty. When does the in-memory data get written to the disk? Is there a<br>
&gt; setting or does it occur during checkpoint ?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Amit<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190611/49f63e50/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190611/49f63e50/attachment-0001.html</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Wed, 12 Jun 2019 08:45:42 +0200<br>
&gt; From: Enrico Olivelli &lt;<a href="mailto:eolivelli@gmail.com" target="_blank">eolivelli@gmail.com</a>&gt;<br>
&gt; To: Herddb developers &lt;<a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a>&gt;<br>
&gt; Subject: Re: [Herddb-dev] Question file storage.<br>
&gt; Message-ID:<br>
&gt;         &lt;CACcefgdw2eeLEANSeb=<br>
&gt; <a href="mailto:x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com" target="_blank">x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; Amit,<br>
&gt;<br>
&gt; Il mer 12 giu 2019, 06:20 Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt; ha scritto:<br>
&gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; I was playing around with herddb to do some testing today. I create a<br>
&gt; very<br>
&gt; &gt; simple table ./herddb-cli.sh -q &quot;CREATE TABLE amit(id int primary key,<br>
&gt; name<br>
&gt; &gt; string)&quot;. I see table meta data file, txlog file etc created for this<br>
&gt; &gt; table. I also inserted 2 to 3 rows into this table and I am able to see<br>
&gt; the<br>
&gt; &gt; txlog being appended by the transaction. What I don&#39;t see is the data<br>
&gt; &gt; actually being written to the disk for the table. The directory<br>
&gt; *dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table<br>
&gt; &gt; *is empty. When does the in-memory data get written to the disk? Is there<br>
&gt; &gt; a setting or does it occur during checkpoint ?<br>
&gt; &gt;<br>
&gt;<br>
&gt; Data is written to the journal/commit log.<br>
&gt; Data pages are swapped to disk:<br>
&gt; - at checkpoint<br>
&gt; - when the system is out of memory<br>
&gt;<br>
&gt; Enrico<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Amit<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; herddb-dev mailing list<br>
&gt; &gt; <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt; &gt; <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt; &gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment-0001.html</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; herddb-dev mailing list<br>
&gt; <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt; <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt;<br>
&gt;<br>
&gt; End of herddb-dev Digest, Vol 12, Issue 1<br>
&gt; *****************************************<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/e944642b/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/e944642b/attachment-0001.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 12 Jun 2019 23:34:17 +0200<br>
From: Enrico Olivelli &lt;<a href="mailto:eolivelli@gmail.com" target="_blank">eolivelli@gmail.com</a>&gt;<br>
To: Herddb developers &lt;<a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a>&gt;<br>
Subject: Re: [Herddb-dev] Question file storage.<br>
Message-ID:<br>
        &lt;<a href="mailto:CACcefgerXaGF7km0079kN9G5z%2B2s29ZQgy1tac%2BsV43zMHBgyQ@mail.gmail.com" target="_blank">CACcefgerXaGF7km0079kN9G5z+2s29ZQgy1tac+sV43zMHBgyQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Il giorno mer 12 giu 2019 alle ore 22:04 Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt;<br>
ha scritto:<br>
<br>
&gt; Thanks. Followup question. How do I replay the transaction log to recreate<br>
&gt; the data?<br>
&gt; In order for the data to be replayed on a new server, you will also<br>
&gt; require the table metadata(schema)? Is there a command line tool to do<br>
&gt; that?<br>
&gt;<br>
<br>
I am not sure I undestand.<br>
<br>
If you want to clone a database and you can stop the server just:<br>
- stop the server<br>
- copy server data to another machine<br>
- start the server<br>
<br>
<br>
If you want to perform a backup/restore of a tablespace you have to use<br>
herddb-cli.sh, I can&#39;t recall the options but you will find it easily.<br>
<br>
If you want to have more copies of the data, realtime synced, you have to<br>
use the cluster mode, in which you have a cluster of servers and you assign<br>
one or more &quot;replicas&quot; to a tablespace, and this is of course the most cool<br>
feature of HerdDB.<br>
<br>
hope that helps<br>
Enrico<br>
<br>
<br>
<br>
<br>
<br>
<br>
&gt;<br>
&gt; On Wed, Jun 12, 2019 at 3:00 AM &lt;<a href="mailto:herddb-dev-request@lists.herddb.org" target="_blank">herddb-dev-request@lists.herddb.org</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; Send herddb-dev mailing list submissions to<br>
&gt;&gt;         <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt;&gt;<br>
&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;         <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt;&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;&gt;         <a href="mailto:herddb-dev-request@lists.herddb.org" target="_blank">herddb-dev-request@lists.herddb.org</a><br>
&gt;&gt;<br>
&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;         <a href="mailto:herddb-dev-owner@lists.herddb.org" target="_blank">herddb-dev-owner@lists.herddb.org</a><br>
&gt;&gt;<br>
&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt; than &quot;Re: Contents of herddb-dev digest...&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Today&#39;s Topics:<br>
&gt;&gt;<br>
&gt;&gt;    1. Question file storage. (Amit Chavan)<br>
&gt;&gt;    2. Re: Question file storage. (Enrico Olivelli)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 1<br>
&gt;&gt; Date: Tue, 11 Jun 2019 21:19:19 -0700<br>
&gt;&gt; From: Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt;<br>
&gt;&gt; To: <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt;&gt; Subject: [Herddb-dev] Question file storage.<br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;CADsOBjM-WjEZms1-ddY9RHs=8fy9GkNcXY=bP64sG-bTdsV2=<br>
&gt;&gt; <a href="mailto:Q@mail.gmail.com" target="_blank">Q@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I was playing around with herddb to do some testing today. I create a very<br>
&gt;&gt; simple table ./herddb-cli.sh -q &quot;CREATE TABLE amit(id int primary key,<br>
&gt;&gt; name<br>
&gt;&gt; string)&quot;. I see table meta data file, txlog file etc created for this<br>
&gt;&gt; table. I also inserted 2 to 3 rows into this table and I am able to see<br>
&gt;&gt; the<br>
&gt;&gt; txlog being appended by the transaction. What I don&#39;t see is the data<br>
&gt;&gt; actually being written to the disk for the table. The directory<br>
&gt;&gt;<br>
&gt;&gt; *dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table<br>
&gt;&gt; *is empty. When does the in-memory data get written to the disk? Is there<br>
&gt;&gt; a<br>
&gt;&gt; setting or does it occur during checkpoint ?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Amit<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190611/49f63e50/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190611/49f63e50/attachment-0001.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 2<br>
&gt;&gt; Date: Wed, 12 Jun 2019 08:45:42 +0200<br>
&gt;&gt; From: Enrico Olivelli &lt;<a href="mailto:eolivelli@gmail.com" target="_blank">eolivelli@gmail.com</a>&gt;<br>
&gt;&gt; To: Herddb developers &lt;<a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a>&gt;<br>
&gt;&gt; Subject: Re: [Herddb-dev] Question file storage.<br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;CACcefgdw2eeLEANSeb=<br>
&gt;&gt; <a href="mailto:x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com" target="_blank">x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;&gt;<br>
&gt;&gt; Amit,<br>
&gt;&gt;<br>
&gt;&gt; Il mer 12 giu 2019, 06:20 Amit Chavan &lt;<a href="mailto:achavan1@gmail.com" target="_blank">achavan1@gmail.com</a>&gt; ha scritto:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I was playing around with herddb to do some testing today. I create a<br>
&gt;&gt; very<br>
&gt;&gt; &gt; simple table ./herddb-cli.sh -q &quot;CREATE TABLE amit(id int primary key,<br>
&gt;&gt; name<br>
&gt;&gt; &gt; string)&quot;. I see table meta data file, txlog file etc created for this<br>
&gt;&gt; &gt; table. I also inserted 2 to 3 rows into this table and I am able to see<br>
&gt;&gt; the<br>
&gt;&gt; &gt; txlog being appended by the transaction. What I don&#39;t see is the data<br>
&gt;&gt; &gt; actually being written to the disk for the table. The directory<br>
&gt;&gt; *dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table<br>
&gt;&gt; &gt; *is empty. When does the in-memory data get written to the disk? Is<br>
&gt;&gt; there<br>
&gt;&gt; &gt; a setting or does it occur during checkpoint ?<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; Data is written to the journal/commit log.<br>
&gt;&gt; Data pages are swapped to disk:<br>
&gt;&gt; - at checkpoint<br>
&gt;&gt; - when the system is out of memory<br>
&gt;&gt;<br>
&gt;&gt; Enrico<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Amit<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; herddb-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt;&gt; &gt; <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment-0001.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; herddb-dev mailing list<br>
&gt;&gt; <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt;&gt; <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; End of herddb-dev Digest, Vol 12, Issue 1<br>
&gt;&gt; *****************************************<br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; herddb-dev mailing list<br>
&gt; <a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
&gt; <a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/02908c35/attachment.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/02908c35/attachment.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
herddb-dev mailing list<br>
<a href="mailto:herddb-dev@lists.herddb.org" target="_blank">herddb-dev@lists.herddb.org</a><br>
<a href="http://lists.herddb.org/mailman/listinfo/herddb-dev" rel="noreferrer" target="_blank">http://lists.herddb.org/mailman/listinfo/herddb-dev</a><br>
<br>
<br>
End of herddb-dev Digest, Vol 12, Issue 2<br>
*****************************************<br>
</blockquote></div></div>