[DiscordArchive] well does the premium table even exist in your db?
[DiscordArchive] well does the premium table even exist in your db?
Archived author: Roboto • Posted: 2023-07-03T15:46:41.543000+00:00
Original source
well does the premium table even exist in your db?
Archived author: DykeR • Posted: 2023-07-03T15:46:52.315000+00:00
Original source
i dont found in the core code like this SQL querys
Archived author: DykeR • Posted: 2023-07-03T15:47:00.239000+00:00
Original source
yes
Archived author: Foe • Posted: 2023-07-03T15:47:04.107000+00:00
Original source
ideally you shouldn't do database queries like that, you should store the premium state or whatever in the account or player context in memory
Archived author: Foe • Posted: 2023-07-03T15:47:23.874000+00:00
Original source
then you could look up that variable instead of doing db queries every time
![[Image: image.png?ex=690c1a50&is=690ac8d0&hm=762...72c845d81&]](https://cdn.discordapp.com/attachments/284406375495368704/1125452762092675233/image.png?ex=690c1a50&is=690ac8d0&hm=7621e15e8eed1c60d0fb358f355d00a1d6a802a0de81e3b3d433b2772c845d81&)
Archived author: DykeR • Posted: 2023-07-03T15:47:28.407000+00:00
Original source
![[Image: image.png?ex=690c1a50&is=690ac8d0&hm=762...72c845d81&]](https://cdn.discordapp.com/attachments/284406375495368704/1125452762092675233/image.png?ex=690c1a50&is=690ac8d0&hm=7621e15e8eed1c60d0fb358f355d00a1d6a802a0de81e3b3d433b2772c845d81&)
Archived author: Revision • Posted: 2023-07-03T15:47:35.564000+00:00
Original source
Ideally. You're dreaming though.
Archived author: Foe • Posted: 2023-07-03T15:48:03.043000+00:00
Original source
pretty basic
Archived author: Revision • Posted: 2023-07-03T15:48:27.094000+00:00
Original source
It is but most people don't know how to. Hell, I don't bother with my modules since the queries are so infrequent.
Archived author: Honey • Posted: 2023-07-03T15:58:51.483000+00:00
Original source
Whatever you do per player, do an async query at login and wipe the players data at logout, easy as that.
Also this sounds like it's a <#353919176714354698>