Alex on Nostr: It's single threaded. The db will run in the single thread. This will bottleneck most ...
It's single threaded. The db will run in the single thread. This will bottleneck most serious user-facing applications unless the data requirements are very minimal. To make it multithreaded you will have to use a worker pool which is very tedious to do in JavaScript. And at that point you are just rebuilding a multithreaded database from scratch.
Published at
2025-02-04 17:44:30Event JSON
{
"id": "c00108789561ad4ee1775cbc0057296456baf5b9f7f0c8446f0600a36074c3c9",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1738691070,
"kind": 1,
"tags": [
[
"e",
"6374f5ded0015ed15cdea8ec2319023fa97abb4202eeb55a95844b5c2731e33c",
"wss://gleasonator.dev/relay",
"root",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd"
],
[
"e",
"d68074da0e86ba10e46b843200499ef8db137554b8025ece16ef4aa1cb39fbb1",
"wss://gleasonator.dev/relay",
"reply",
"11b9a89404dbf3034e7e1886ba9dc4c6d376f239a118271bd2ec567a889850ce"
],
[
"p",
"11b9a89404dbf3034e7e1886ba9dc4c6d376f239a118271bd2ec567a889850ce",
"wss://gleasonator.dev/relay"
]
],
"content": "It's single threaded. The db will run in the single thread. This will bottleneck most serious user-facing applications unless the data requirements are very minimal. To make it multithreaded you will have to use a worker pool which is very tedious to do in JavaScript. And at that point you are just rebuilding a multithreaded database from scratch.",
"sig": "1a7f22e4f79a6197788ab449e3c71ffe0c44821bfcdc01436fc1b391333a86f8b3023116ebf641fe989b0c2b3e694f50fa2e56885d217dea4488552f54c1fdb1"
}