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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:44:16+00:00 2026-06-15T13:44:16+00:00

I have a poorly performing query in my Google AppEngine app. Here’s what I’m

  • 0

I have a poorly performing query in my Google AppEngine app. Here’s what I’m doing:

import models
from time import time

parent = models.ParentEntity.gql("WHERE string_property = :1", "a guid").get()

start = time()

data_rows = []

children = models.ChildEntity.gql("WHERE ANCESTOR IS :1", parent.key())
for child in children.run():
    data_rows.append(child.data)

print "Loaded %s rows in: %s" % (len(data_rows), time() - start)

I ran this three times in the interactive console on my machine, here is the output:

Loaded 653 rows in: 8.18052411079
Loaded 653 rows in: 5.93607997894
Loaded 653 rows in: 9.97486710548

Is 5-9 seconds to load 653 rows normal? This was on the dev web server, will it be much better on the real server? I know about memcache and am using it already, but how can I get things to go faster for the times I do need to populate the cache?

  • 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-15T13:44:17+00:00Added an answer on June 15, 2026 at 1:44 pm

    You shouldn’t take the dev server as any way indicative of performance on the live server. It emulates the BigTable infrastructure using either a flat file or an sqlite3 database, so performance is pretty terrible. The only way to test this properly is on AppEngine itself.

    Note that an ancestor query is as efficient as it gets, so you shouldn’t have any problems when you do try it in production.

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

Sidebar

Related Questions

I have an assignment to tune a poorly performing query running on a SQL
I have have a query that is performing poorly. One aspect of the query
I have a query that is performing poorly. Server version: 5.1.37-1ubuntu5.1 (Ubuntu) SELECT *
I noticed that many websites, even Google and some banking sites, have poorly-written HTML
NOTE The code below is from asp.net. If I have the (poorly written) code
I have been given some poorly formatted data and need to pull numbers out
I have to connect to a poorly implemented server that only understands Content-Type (capital-T)
edit: my table schema below is poorly normalized as suggested and I have revamped
have written this little class, which generates a UUID every time an object of
Have an issue with marshall and unmarshall readers and writers. So here it is.

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.