Skip to main content
Tweeted twitter.com/StackGameDev/status/1144213808212299776
Became Hot Network Question
deleted 2 characters in body
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

I want to use sql database in my server.exe.

lets say 1000 users online. And players will change their datasdata when they play. And server need to save these updates.

But how ?

i think there two way:

  1. server will save in ram at run time and sometime or hourly server will write datasdata (update) to sql database from ram. But if electricity goes or somehow the server shuts down , updates won't save. of course i don't want lose updates.

  2. server will save updates in database at run time. but what will happen to speed ? I thought of a method. i will show you below with image. Can i get enough speed for 1000 online players with this method ? enter image description here

I want to use sql database in my server.exe.

lets say 1000 users online. And players will change their datas when they play. And server need to save these updates.

But how ?

i think there two way:

  1. server will save in ram at run time and sometime or hourly server will write datas (update) to sql database from ram. But if electricity goes or somehow the server shuts down , updates won't save. of course i don't want lose updates.

  2. server will save updates in database at run time. but what will happen to speed ? I thought of a method. i will show you below with image. Can i get enough speed for 1000 online players with this method ? enter image description here

I want to use sql database in my server.exe.

lets say 1000 users online. And players will change their data when they play. And server need to save these updates.

But how ?

i think there two way:

  1. server will save in ram at run time and sometime or hourly server will write data (update) to sql database from ram. But if electricity goes or somehow the server shuts down , updates won't save. of course i don't want lose updates.

  2. server will save updates in database at run time. but what will happen to speed ? I thought of a method. i will show you below with image. Can i get enough speed for 1000 online players with this method ? enter image description here

Source Link
Emre Kaya
  • 555
  • 1
  • 5
  • 13

How does mmorpg store data?

I want to use sql database in my server.exe.

lets say 1000 users online. And players will change their datas when they play. And server need to save these updates.

But how ?

i think there two way:

  1. server will save in ram at run time and sometime or hourly server will write datas (update) to sql database from ram. But if electricity goes or somehow the server shuts down , updates won't save. of course i don't want lose updates.

  2. server will save updates in database at run time. but what will happen to speed ? I thought of a method. i will show you below with image. Can i get enough speed for 1000 online players with this method ? enter image description here