[DiscordArchive] Why is that ?
[DiscordArchive] Why is that ?
Archived author: Acidy • Posted: 2021-05-05T10:56:45.224000+00:00
Original source
Why is that ?
Archived author: Yehonal • Posted: 2021-05-05T10:57:15.810000+00:00
Original source
when you run a *Query() in LUA the entire core waits for the result locking the entire process
Archived author: Yehonal • Posted: 2021-05-05T10:57:29.146000+00:00
Original source
it's not async and doesn't use another thread
Archived author: Yehonal • Posted: 2021-05-05T10:58:16.707000+00:00
Original source
me and <@!595620700706832414> made some benchmarks and with a couple of *Query() you can even get 150ms of lag easily
Archived author: Yehonal • Posted: 2021-05-05T10:59:15.415000+00:00
Original source
<@!248138535968833537> I strongly suggest you to write in your Documentation the best pattern to use when you need data from the DB. People should load it at the server start and not on every update
Archived author: Yehonal • Posted: 2021-05-05T11:00:12.307000+00:00
Original source
I've seen tons of LUA script written with this approach since who uses lua normally is not aware of this performance stuff
Archived author: Acidy • Posted: 2021-05-05T11:01:05.574000+00:00
Original source
Thanks for letting me know but i tested this but for myself i had no issues with this script