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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:31:46+00:00 2026-05-18T04:31:46+00:00

Cheers all. I’m running Ubuntu 10.04 and the latest Google AppEngine SDK. I’m working

  • 0

Cheers all. I’m running Ubuntu 10.04 and the latest Google AppEngine SDK. I’m working on a simple website which has posts and comments to posts. I basically implemented a simple tree to store my comments with a parent_comment, left and right values.

I created an event which fires before a new (not is_saved()) comment is put() into the Google Datastore, which calculates the left and right values for the new comment, as well as updates older comments for a valid hierarchy. I basically followed Managing Hierarchical Data in MySQL and implemented it in Python.

Everything seems to work fine, new comments are added, threading looks good, but…
A cycle that submits 40 comments during startup works, but when I increase that cycle to 80 or more, I’m left with an IOError:

IOError: [Errno 24] Too many open files: '/tmp/tmp0agXqU'

My code for generating 60 comments looks like this:

for k in range(0, 4):
    comments = {0: None}
    for i in range(1, 21):
        j = random.randrange(0, len(comments))
        pc = comments[j]

        comments[i] = Comment(
            name=lipsum(count=1),
            email=lipsum(count=1, make_slug=True) + '@email.com',
            url='http://' + lipsum(count=2, make_slug=True) + '.com',
            content=lipsum(count=random.randrange(10, 50)),
            object_link=p.key(),
            parent_comment=pc
        )
        comments[i].put()

The lipsum function simply returns a piece of lorem ipsum text.

Any ideas on how to solve this? Thanks!

  • 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-18T04:31:47+00:00Added an answer on May 18, 2026 at 4:31 am

    I had the same problem for a massive taskqueue worker.

    Switching to SQLite for your local Datastore could solve the problem:

    dev_appserver.py --use_sqlite 
    

    Since App Engine SDK 1.3.3, the Python
    SDK has a new experimental feature
    that gives the option to use SQLite
    as the datastore stub backend. Using
    SQLite within the dev_appserver should
    speed up performance of your local
    datastore when testing on large
    datasets.

    For the dev_appserver documentation, have a look here

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

Sidebar

Related Questions

First of all, here is a JSFiddle which has the problem I'm getting. http://jsfiddle.net/UG66K/9/
I have a service running which periodically checks a folder for a file and
All i need is a simple explanation on how does this function work I
I have got a passcode all up and running (4 digit login) and i
Cheers all! I'm quite new to Django, but I've been digging around for few
Hi all im working on an ipad app using cocos2d objective c and box2d.
Hi all Working on a universal build for an iphone/ipod/ipad app. I was trying
Hey all. Looking beyond the purpose of the following two OOP examples, which is
G'day All My app has a first run component that presents a login/signup screen
I am designing an application which has the potential to hang while waiting for

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.