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 7193149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:06:40+00:00 2026-05-28T20:06:40+00:00

if i have 2 Tables, Table Player , (Fields – PlayerKey, PlayerName, PlayerUrlPhoto) Table

  • 0

if i have 2 “Tables”,

“Table Player” , (Fields – PlayerKey, PlayerName, PlayerUrlPhoto)
“Table PlayerGames”, (Fields – PlayerGameKey, PlayerKey, GameDate)

if i wanna list all games, i will create a query in “PlayerGames”, and to show the “Players” info, i will have to “GetObjectbyID” to read PlayerName and PLayerUrlPhoto.

What is the best way to do this?

1 – Using GetObjectByID is the right way (spending 1 “datastore read” more for each “PlayerGame” record)
2 – Store at “PlayerGames” the fields that i know that i will need to list in the future? (as playername and playerurlphoto, Saving the “DataStore read” to get Player info)
3 – Other way…

  • reminding that the player can change his name and his photo, so if i store the name and photo at “PlayerGames” i will have to update all the records too. (and will spend alot of DataStore Writes)

Can someone give me a tip about this?

thx

  • 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-05-28T20:06:41+00:00Added an answer on May 28, 2026 at 8:06 pm

    It sounds like you just need to use memcache in front of your entities. When you’re getting Player entities by key, first check the memcache using a key you calculate from the datastore key, and if there’s a value there, use it. Otherwise, perform the datastore read, then store the result in the memcache for future use. This will drastically reduce the number of datastore reads.

    When the player updates her record, just delete the memcache value after updating the datastore record. This forces the next read to go to the datastore, and update the cache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL table LOGIN_LOG with fields ID, PLAYER, TIMESTAMP and ACTION. ACTION
Suppose you have these tables: Table Name: Salesman Fields: S_ID(Primary Key), Name Table Name:
I have two tables that I'm querying from. In one table, there are fields
I use PHP and MySQL and I have 2 tables: table score: have fields
I have a table Player with columns id, name, wins, games_played. I mapped it
I have the following Tables: Players id playerName Weapons id type otherData Weapons2Player id
I have two tables: Table 1: ID, PersonCode, Name, Table 2: ID, Table1ID, Location,
i have 2 tables CREATE TABLE if not exists tag_name( + tagid INTEGER PRIMARY
I have 2 tables: CREATE TABLE `product_det` ( `id` bigint(12) unsigned NOT NULL AUTO_INCREMENT,
I have several tables: CREATE TABLE [dbo].[Tracks]( [Id] [uniqueidentifier] NOT NULL, [Artist_Id] [uniqueidentifier] NOT

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.