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

  • Home
  • SEARCH
  • 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 8972413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:12:47+00:00 2026-06-15T18:12:47+00:00

Context: using Memcached. (With Google App Engine and Objectify, but this is irrelevant) I

  • 0

Context: using Memcached. (With Google App Engine and Objectify, but this is irrelevant)

I will create a simple example, a game with two entities Player and Game. Users can often consult a single Request games that are opened or even the player profiles. There may be open 100 games or maybe 3000000 games.

(1) It is good idea to use caching for all entities? If I have unused RAM, why not use it with games or players?
Is there a bad case for this? (except take cache accessing data not at all almost no time)

(2) Another question is, when loading objects, should I partition to optimize objects stored? and cached?, for example:

player {
  email
  pass

  punctuation          // This data will change quite frequently
  numGamesClosed       // This data will change quite frequently
}

Maybe better:

 @Entity     //DataStore entity
 player {
    email
    pass
 }

 @Cache     //The entity will be cached into Memchached
 @Entity    //DataStore entity
 DatosJugador
 {
    @Parent Key <Player> owner;
    punctuation
    numGamesClosed      
 }

Thanks a lot

  • 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-15T18:12:48+00:00Added an answer on June 15, 2026 at 6:12 pm

    The “ram” used by memcache is not from your application, it’s from a pool of memcached memory generic to GAE that is shared. All instances of your application “see” the same memcache.

    What you put into memcache does not count towards your applications ram usage.

    However the contents of memcache can be evicted at any time with no notice. So really there is no reason (apart from the upper limit on the size of the object you can put into memcache) not to cache everything, as long as you can fallback to the datastore if it’s not in cache at the time you ask for it.

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

Sidebar

Related Questions

I'm drawing simple text in HTML5 canvas using this: context.fillStyle = #FF0000 context.font =
I am using context switching to get json response in Zend framework This is
If I create a mock in my spring context file using Springockito as described
I am using a context menu for my gridcontrol. theGrid.ContextMenuStrip = contextMenuStrip1; This has
I'm trying to do this: using(var context = new SampleEntities()) { User user =
i need to do something like this on a transaction context using(var context =
I'm trying to write a simple maze game, without using any deprecated OpenGL API
I'm struggling on how to setup my environment for TDD with Google App Engine
Context Using Ruby I am parsing strings looking like this: A type with an
I am using UIImagePickerController in an iOS app to save an image in context

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.