You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With our current long-polling strategy for checking Game state on the Frontend, the number of Queries performed for every call, every 15 seconds, is massive. ActiveRecord needs to pull all public GameCards, their Card information, Player information, and call Player methods to determine cards in hand and topdeck of Discard.
While AR might have some built in caching/optimization, there still can definitely improve these calls.
Implement real caching: Cache keys will be based on Game.turn number to ensure they're always the current state of the Game
Short Cache expiration: 30 Minutes or less would ensure that data is not kept around too long, but also allows for people to stop playing for a period of time without the cache repopulating too much
The text was updated successfully, but these errors were encountered:
With our current long-polling strategy for checking Game state on the Frontend, the number of Queries performed for every call, every 15 seconds, is massive. ActiveRecord needs to pull all public GameCards, their Card information, Player information, and call Player methods to determine cards in hand and topdeck of Discard.
While AR might have some built in caching/optimization, there still can definitely improve these calls.
The text was updated successfully, but these errors were encountered: