[DiscordArchive] doesn't that mean you'd have to write to the DB? I thought you should try only to read from it to pr
[DiscordArchive] doesn't that mean you'd have to write to the DB? I thought you should try only to read from it to pr
Archived author: Bset • Posted: 2023-01-12T12:40:24.269000+00:00
Original source
doesn't that mean you'd have to write to the DB? I thought you should try only to read from it to prevent hanging?
Archived author: Foe • Posted: 2023-01-12T12:48:55.175000+00:00
Original source
There's no issue writing to the db, the main issue is reading from the db excessively
Archived author: Foe • Posted: 2023-01-12T12:49:14.369000+00:00
Original source
Db reads are synchronous because we expect a callback with data
Archived author: Foe • Posted: 2023-01-12T12:49:49.031000+00:00
Original source
Db writes are async and we expect no return, so it doesn't hang the update thread
Archived author: Fiur • Posted: 2023-01-12T12:50:29.741000+00:00
Original source
I cache data when ever i can with Eluna
Archived author: Foe • Posted: 2023-01-12T12:50:51.041000+00:00
Original source
As long as you actually don't write bad code then performance isn't a massive problem for most projects, but that's why we're working on a proper key value store core side to skip the db use
Archived author: robinsch • Posted: 2023-01-12T12:50:54.746000+00:00
Original source
Just create a simple async query function that reports back as event
Archived author: Foe • Posted: 2023-01-12T12:51:22.602000+00:00
Original source
That's also on the todo instead of the synchronous calls
Archived author: Fiur • Posted: 2023-01-12T12:51:40.935000+00:00
Original source
You are working on proper key value store core side so we can start writing bad code with better performance
Archived author: Fiur • Posted: 2023-01-12T12:51:43.820000+00:00
Original source