#MySQL Statement Executed Event?
1 messages · Page 1 of 1 (latest)
i just need to know when they have done /link sessionid
and linked their uuid
so i can give them their corresponding roles
and set their nickname
you would need something like redis pubSub or use timestamps and constantly check them
You might be able to do something with triggers
im considering iterating every 10s through the list of linked people
and setting nickname and giving roles
but that sounds inefficient
10s is a pretty big delay aswell
nvm have idea
Depends on your db. Some DBs have a subscriber model where you can listen to changes in the tables.
for these sort of usecases I always use some sort of messaging system, usually redis, sockets http etc.
most dbs arent made for subscription type services
Depends how you are using sql?
either way as mentioned, use a messaging system, i've heard good things about RabbitMQ