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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:35:33+00:00 2026-05-30T11:35:33+00:00

I have a Google App Engine datastore that could have several million records in

  • 0

I have a Google App Engine datastore that could have several million records in it and I’m trying to figure out the best way to do a query where I need get records back that match several Strings.

For example, say I have the following Model:

String name
String level
Int score

I need to return all the records for a given “level” that also match a list of “names”. There might be only 1 or 2 names in the name list, but there could be 100.

It’s basically a list of high scores (“score”) for players (“name”) for a given level (“level”). I want to find all the scores for a given “level” for a list of players by “name” to build a high score list that include just your friends.

I could just loop over the list of “names” and do a query for each their high scores for that level, but I don’t know if this is the best way. In SQL I could construct a single (complex) query to do this.

Given the size of the datastore, I want to make sure I’m not wasting time running python code that should be done by the query or vise-versa.

The “level” needs to be a String, not an Int since they are not numbered levesl but rather level names, but I don’t know if that matters.

  • 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-30T11:35:34+00:00Added an answer on May 30, 2026 at 11:35 am

    You can use IN filter operator to match property against a list of values (user names):

    scores = Scores.all().filter('level ==', level).filter('user IN', user_list)
    

    Note that under the hood this performs as much queries as there are users in user_list.

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

Sidebar

Related Questions

I have a simple Google App Engine app, that I wrote using ordinary strings.
I'm using Google App Engine and Django templates. I have a table that I
The Google App Engine Datastore allows each entity to have a parent entity ,
I have a few questions about google app engine / datastore and storing dynamic
I have a BerkeleyDB key/value datastore embedded in my Google App Engine project, which
I'm trying to combine two Google App Engine datastore results. Because I then want
I like Google App Engine for the Datastore (and the fact that I can
I am currently looking for the best way to backup my Google App Engine's
Using Google App Engine and GQL and Python: in my datastore I have something
I'm using the datastore of the Google App Engine (DataNucleus). I have two classes,

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.