<p></p>
<p>I believe we need some more context to fully grasp the topic:</p>
<h2>Why are these datastores in place?</h2>
<p>Given a fresh install of Bisq, Bisq needs to sync up its local copy of our distributed database. It could do so by just asking the network and download the data from there. We do not have the bandwidth, as our P2P network is still very small.</p>
<p>Thus, every release comes with a snapshot of the distributed database. Thus, fresh Bisq installs do not have to download huge amounts (we might just sit at the 100MB mark) of data just to get started.</p>
<p>(Alas, the user just downloaded the data via the installer, so technically, it does not make a difference at the user level. However, given a too-small network and generally, upstream << downstream, it could take a while. So we went for hosting it via the installers.)</p>
<h2>Does changing the storage location alter Bisq functionality?</h2>
<p>No, the database snapshots are still going to be included in the release binaries. Only builds from source might have to be adjusted. There is no need to change Bisqs functionality and inner workings.</p>
<h2>Further options I can think:</h2>
<ol start="5">
<li>
<p>only add the updated data as proposed as a side effect in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="576403913" data-permission-text="Title is private" data-url="https://github.com/bisq-network/projects/issues/25" data-hovercard-type="issue" data-hovercard-url="/bisq-network/projects/issues/25/hovercard" href="https://github.com/bisq-network/projects/issues/25">bisq-network/projects#25</a>. Of course this is a short term countermeasure and only slows the problem down. But that could be substantial as well: going from adding a database with <code>size(t) = size(t-1) + newdata</code> to adding a database with <code>size(t) = newdata</code> reduces the order of size growth significantly.<br>
Again, this is NOT a solution, but it might buy us time to think about the issue properly.</p>
</li>
<li>
<p>use git releases to host the database snapshots</p>
</li>
<li>
<p>use git packages to host the database snapshots</p>
</li>
</ol>
<h2>Historical data vs. live data</h2>
<p>The database (and its snapshots) evolves like (just made up the names though):</p>
<p><code>hd(release) = hd(release-1) + livedata</code></p>
<p>with <code>release</code> being a point in time, where a new bisq version has been released (eg. v1.2.9). This release ships historical data <code>hd(bisq version)</code>. <code>livedata</code> is data coming in in between releases when Bisq business commences. Trades are being conducted, new accounts are created (Note, offers are not included as they will be gone after they have been taken). Before <code>livedata</code> gets compiled into <code>historical data</code>, it only lives in the P2P network</p>
<p>For example:</p>
<ul>
<li>historical data <code>hd(v1.2.9)</code> is shipped with release v1.2.9</li>
<li><code>hd(v1.2.9)</code> includes <code>hd(v1.2.8) + livedata</code> that accumulated in the time between the releases</li>
</ul>
<p>(Please note that upgrading a bisq version does not use the shipped database snapshot of the new version as for now)</p>
<p>That being said, I understand your (4.) is aimed at <code>livedata</code>:</p>
<blockquote>
<ol start="4">
<li><strong>Re-think our approach to distributing data stores entirely.</strong> So the question arises, why put all of this on the seed nodes in the first place? Why not have the entire network of Bisq nodes share this data with one another</li>
</ol>
</blockquote>
<ul>
<li>Well, the entire network is sharing data with one another. That is how it works and how it is designed.</li>
<li>seednodes do NOT distribute the database snapshots, these snapshots are shipped with the installer binaries.</li>
</ul>
<p>however:</p>
<ul>
<li>
<p>as time goes on, a database snapshot shipped with the installer start missing objects immediately (because life goes on and trades happen and ...)</p>
</li>
<li>
<p>the Bisq app, however, needs all the data, especially the latest, to work properly</p>
</li>
<li>
<p>thus, bisq does the following steps before it shows the actual GUI to the user</p>
<ol>
<li>ask 2 seednodes for preliminary data (> 4MB request)</li>
<li>ask 2 seednodes for updated data (4MB again) after hidden service is online in case there has been something happening between preliminary request and the hidden service coming online (note that having v3 HS now and their very low publishing time, we might think of loosing the preliminary request (see what I did there? it finally comes together <g-emoji class="g-emoji" alias="1st_place_medal" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f947.png">🥇</g-emoji> ) )</li>
<li>ask 2 seednodes for peers</li>
</ol>
</li>
<li>
<p>by doing it like so, the Bisq network eliminates issues with source file availability. Just think back to the good ol' days with eMule when you had downloaded 99% of the ubuntu4.iso and there just hasn't been a source around for the very last 4k block of data you have been missing. As our P2P network is still very small, we might encounter that as well.</p>
</li>
<li>
<p>other approaches have been suggested, one of the most promising imho is to scramble up the current steps and split the data load.</p>
<ol>
<li>ask for peers</li>
<li>ask these peers + seed nodes for data, but do not ask all data from all of them<br>
which of course is not trivial, because we do not know which data we are missing...</li>
</ol>
</li>
</ul>
<h2>Dev Call</h2>
<p>I have a feeling we should discuss this on a dev call someday. Needs some more info though.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/4114#issuecomment-608383454">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUFDSCUO7MBKYWONULRKXCKTANCNFSM4L2NFAIA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNXOROH66Y2HBQUYIGLRKXCKTA5CNFSM4L2NFAIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOERBTDXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/4114#issuecomment-608383454",
"url": "https://github.com/bisq-network/bisq/pull/4114#issuecomment-608383454",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>