Fork me on GitHub
#xtdb
<
2021-10-20
>
tatut07:10:20

can the db returned by xtdb.api/open-db used from multiple threads? quick try with pmap seems to work (not that I would use pmap with queries in production)

refset07:10:33

No, the underlying iterator snapshots are thread-local, same with db

tatut07:10:10

good to know, so any multithreaded use should get their own db via xt/db

✔️ 2
tatut07:10:02

just using the same basis, so that the work is consistent

refset07:10:09

Exactly, yep 🙂

Vitalii Pecherin20:10:02

hey! First of all, I would like to say thank everyone for xtdb. I have a question: I saw in API reference https://xtdb.com/reference/1.19.0/transactions.html#dropping-the-database and it says: … you must first manually .stop the node(s) … . But when I call .stop on xtdb-node - it returns exception with no matching method. Is this a typo in the documentation? Because I know there is a method .close for that, right?

refset21:10:16

> I would like to say thank everyone for xtdb. Hey, our pleasure! 🙏 > Is this a typo in the documentation? Oops...yes that definitely should be .close - my own mistake 😅 Thanks for mentioning it!

Vitalii Pecherin07:10:52

🤙😎

❤️ 1
Vitalii Pecherin07:10:55

you are very welcome 🙂

❤️ 1