<p>You can run <a href="https://github.com/input-output-hk/cardano-db-sync" rel="nofollow noreferrer">cardano-db-sync</a>, but be aware that is a rather heavy weight application that requires lots of RAM (ie 32 Gig) and will take about a week to sync.</p>

CC BY-SA 4.0
2022-06-20T05:39:35.290Z
32 GB will not be enough if you are also running cardano-node on the same machine. Or you will need to add a lot of swap...
George - APEX Stake Pool
CC BY-SA 4.0
2022-06-20T05:49:21.360Z
Yeah looked at the repo this is not a viable option, for my computer and its over speced to train AI. That means I Have more Storage and RAM then most people.
KryptoKing
CC BY-SA 4.0
2022-06-20T06:15:49.087Z
@George-APEXStakePool I run a `node` and `db-sync` in a VM with 18 Gugabytes (16 was not enough).
Erik de Castro Lopo
CC BY-SA 4.0
2022-06-20T08:43:24.230Z
@ErikdeCastroLopo If you run it long enough, you will see that one of them will eventually be killed with OOM error. It happened to me last week on a VM with 32 GM RAM. I upgraded it to 40 GB RAM and I also increased the swap (which was only 4 GB).
George - APEX Stake Pool
CC BY-SA 4.0
2022-06-20T05:32:46.660Z
2022-06-20T05:32:46.660Z
Erik de Castro Lopo
<p>The node by itself is stripped down of resources to keep active records of history, so the expectation that you could query node from Daedalus to have similar capability as cardano-db-sync (which maintains kinda everything from chain, as well as from ledger events, alongwith historical view). Thus, the resource requirements from dbsync are expected to be much more.</p>
<p>DB Sync v13 will allow you to stop querying ledger-state data which will shave off ~8-10GB (at the expense of not saving off-chain calcs coming from ledger-state). Instead if you're after creating small-scoped utility while not being able to spend much resources, you can look at projects below:</p>
<ol>
<li><a href="https://ogmios.dev" rel="nofollow noreferrer">Ogmios</a> / <a href="https://github.com/CardanoSolutions/kupo" rel="nofollow noreferrer">Kupo</a></li>
<li><a href="https://github.com/txpipe/oura" rel="nofollow noreferrer">Oura</a> / <a href="https://github.com/txpipe/scrolls" rel="nofollow noreferrer">Scrolls</a></li>
</ol>
<p>Of course - the more you want to store and manage historically, higher the resources required will be</p>

CC BY-SA 4.0
2022-06-21T01:01:33.793Z
2022-06-21T01:15:14.137Z
2022-06-21T01:15:14.137Z
RdLrT
<p>So I have been trying to do some fun things with Daedalus, and realised I should be able to query the node from it. This makes me wonder how to set up a limited database / querying system for my own needs out of Daedalus? Kinda like a smaller blockfrost.</p>

<cardano-node><daedalus><cardano-db-sync><blockfrost>
How to Run A DB Sync Server On Daedalus?
# How to Run A DB Sync Server On Daedalus?

(Asked by: username_0 on 2022-06-20)

So I have been trying to do some fun things with Daedalus, and realised I should be able to query the node from it. This makes me wonder how to set up a limited database / querying system for my own needs out of Daedalus? Kinda like a smaller blockfrost.

**Tags:** cardano-node, daedalus, cardano-db-sync, blockfrost

---

## 2 answers

### Answer by username_3 on 2022-06-21. Score: 2 | Accepted answer

The node by itself is stripped down of resources to keep active records of history, so the expectation that you could query node from Daedalus to have similar capability as cardano-db-sync (which maintains kinda everything from chain, as well as from ledger events, alongwith historical view). Thus, the resource requirements from dbsync are expected to be much more.

DB Sync v13 will allow you to stop querying ledger-state data which will shave off ~8-10GB (at the expense of not saving off-chain calcs coming from ledger-state). Instead if you're after creating small-scoped utility while not being able to spend much resources, you can look at projects below:

1. [Ogmios](https://ogmios.dev) / [Kupo](https://github.com/CardanoSolutions/kupo)
2. [Oura](https://github.com/txpipe/oura) / [Scrolls](https://github.com/txpipe/scrolls)

Of course - the more you want to store and manage historically, higher the resources required will be


---

### Answer by username_1 on 2022-06-20. Score: 0

You can run [cardano-db-sync](https://github.com/input-output-hk/cardano-db-sync), but be aware that is a rather heavy weight application that requires lots of RAM (ie 32 Gig) and will take about a week to sync.

> **Comments:**
> **username_2**: 32 GB will not be enough if you are also running cardano-node on the same machine. Or you will need to add a lot of swap...  
> **username_0**: Yeah looked at the repo this is not a viable option, for my computer and its over speced to train AI. That means I Have more Storage and RAM then most people.  
> **username_1**: @George-APEXStakePool I run a `node` and `db-sync` in a VM with 18 Gugabytes (16 was not enough).  
> **username_2**: @ErikdeCastroLopo If you run it long enough, you will see that one of them will eventually be killed with OOM error. It happened to me last week on a VM with 32 GM RAM. I upgraded it to 40 GB RAM and I also increased the swap (which was only 4 GB).  

---

