<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 12 giu 2019 alle ore 22:04 Amit Chavan &lt;<a href="mailto:achavan1@gmail.com">achavan1@gmail.com</a>&gt; ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks. Followup question. How do I replay the transaction log to recreate the data? </div><div>In order for the data to be replayed on a new server, you will also require the table metadata(schema)? Is there a command line tool to do that? </div></div></blockquote><div><br></div><div>I am not sure I undestand.</div><div><br></div><div>If you want to clone a database and you can stop the server just:</div><div>- stop the server</div><div>- copy server data to another machine</div><div>- start the server</div><div><br></div><div><br></div><div>If you want to perform a backup/restore of a tablespace you have to use herddb-cli.sh, I can&#39;t recall the options but you will find it easily.<br></div><div><br></div><div>If you want to have more copies of the data, realtime synced, you have to use the cluster mode, in which you have a cluster of servers and you assign one or more &quot;replicas&quot; to a tablespace, and this is of course the most cool feature of HerdDB.</div><div><br></div><div>hope that helps<br></div><div>Enrico<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">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></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. Question file storage. (Amit Chavan)<br>
   2. Re: Question file storage. (Enrico Olivelli)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 11 Jun 2019 21:19:19 -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: [Herddb-dev] Question file storage.<br>
Message-ID:<br>
        &lt;CADsOBjM-WjEZms1-ddY9RHs=8fy9GkNcXY=bP64sG-bTdsV2=<a href="mailto:Q@mail.gmail.com" target="_blank">Q@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hello,<br>
<br>
I was playing around with herddb to do some testing today. I create a very<br>
simple table ./herddb-cli.sh -q &quot;CREATE TABLE amit(id int primary key, name<br>
string)&quot;. I see table meta data file, txlog file etc created for this<br>
table. I also inserted 2 to 3 rows into this table and I am able to see the<br>
txlog being appended by the transaction. What I don&#39;t see is the data<br>
actually being written to the disk for the table. The directory<br>
*dbdata/data/20017d0222784757b504d0a157c59333.tablespace/fa077872-98c2-495d-8891-75936baa3a40.table<br>
*is empty. When does the in-memory data get written to the disk? Is there a<br>
setting or does it occur during checkpoint ?<br>
<br>
Thanks,<br>
Amit<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 12 Jun 2019 08:45:42 +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;CACcefgdw2eeLEANSeb=<a href="mailto:x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com" target="_blank">x-_A-COF7MhwZoD2cMunSJwzv3RxVSA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Amit,<br>
<br>
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>
<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 *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<br>
&gt; a setting or does it occur during checkpoint ?<br>
&gt;<br>
<br>
Data is written to the journal/commit log.<br>
Data pages are swapped to disk:<br>
- at checkpoint<br>
- when the system is out of memory<br>
<br>
Enrico<br>
<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Amit<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/77148ed2/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.herddb.org/pipermail/herddb-dev/attachments/20190612/77148ed2/attachment-0001.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 1<br>
*****************************************<br>
</blockquote></div></div>
_______________________________________________<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>
</blockquote></div></div>