SQLite data leak
#1

Hello, can someone tell me why my server with SQLite saved system sometimes loses user data when disconnecting or restarting the server?
How could I solve it? and what is causing it?

I stress: This never happened to me, I had the server online before and never lost any data, it may be the attacks I'm receiving? (The attacks are DDoS with botnet)
Reply
#2

Do you make queries to your db when a user disconnects?
Reply
#3

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Do you make queries to your db when a user disconnects?
Yes.
Reply
#4

You just found your problem then. Saving anything other than immediately means running the risk of data loss.
Reply
#5

Quote:
Originally Posted by Pottus
Посмотреть сообщение
You just found your problem then. Saving anything other than immediately means running the risk of data loss.
So, I should not save the data when the user disconnects, if not in another way?
Reply
#6

Update data when changes. User recived/lost money? Let the database know about it
Reply
#7

Thank you
+1
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)