Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:13:27+00:00 2026-06-13T19:13:27+00:00

For a two-player game, I need to send updated data to player every 30

  • 0

For a two-player game, I need to send updated data to player every 30 seconds.

I have a table (ideally 4 tables) from where I need to select data and sent to user once he/she login. Since it is multi-player interaction game, data needs to be sync every 30-60 seconds.

My problem is, I’ve a very heavy query to run every 30-60 seconds. So ideally, I should send only updated and new rows to the player during sync (Its also a front end requirement for IPhone/Android game, app don’t want whole data during every sync operation).

I went through MySQL: difference of two result sets and hope I’ll get only updated/new records through SQL but problem is, how do I save result of last query.

Even if I save first result in Session (probably not recommended) that record will be useless as soon as new row inserted or updated. Updating session record again will definitely put lot of pressure on the server.

Can someone please suggest the best way to achieve this requirement; Not detailed solution, just some hint/link will be sufficient.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:13:28+00:00Added an answer on June 13, 2026 at 7:13 pm

    Basically, this isn’t that hard. Let me provide you with a step plan.

    1. Add a datetime field to each table you want to do this on
    2. In each of your updating queries, set this field to NOW()
    3. Make sure that the application adds the time of its last update to all its requests
    4. Have the server add the time of the update to result it send to the app (which also sends the updated rows)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two arrays used in a small game. If the player gets a
I have two displays. I want to make a media player and I want
In my community, every user should only have one account. So I need a
Multuplayer game with socket.io - Make the bigger word from letters How need to
I'm writing a simple command-line board game in Ruby. I need to have main
I am trying to build simple two player Game application in ASP.net/C#. I am
I have a table with this columns : [user_id][game_id] I need to close the
Let's say I have a simple table with NBA players: id,player,mp,ppg (mp - matches
I want to create a two player game on iPad, but I don't really
My Schema I have the following tables table notes/example values ------------------------------------------------ users ( id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.