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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:45:43+00:00 2026-05-30T22:45:43+00:00

I am fetching records from gae model using cursor() and with_cursor() logic as used

  • 0

I am fetching records from gae model using cursor() and with_cursor() logic as used in paging. but i am not sure how to check that there is no any other record in db that is pointed by cursor. i am fetching these records in chunks within some iterations.when i got my required results in the first iteration then in next iteration I want to check there is no any record in model but I not get any empty/None value of cursor at this stage.please let me know how to perform this check with cursors in google app engine with python.

  • 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-30T22:45:45+00:00Added an answer on May 30, 2026 at 10:45 pm

    If your model is extending ndb, you should use fetch_page(). If it’s not extending ndb, you may want to consider changing. It’s not completely backwards compatible but the data does not have to be migrated.

    from google.appengine.ext.ndb import model
    
    class User(model.Model):
       name = model.StringProperty()
    
    users, cursor, more = User.query(User.name == "Jon").fetch_page(25)
    
    if more: 
        # Do next page logic
        next_users = User.query(User.name == "Jon").fetch_page(25, start_cursor=cursor)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fetching some data from an MSSQL table using the mssql_fetch_object, but the text
I am fetching an array of floats from my database but the array I
I'm fetching a list of records using App.store.findQuery and my custom adapter (very similar
I have a table and from that I am fetching records somewhere around 250,000
I am fetching records from one table with count of one field with other
I have a form i am fetching many records from database that are rendering
I have an problem in fetching records from database with php. I have 31700
Got problem with PDOStatement->fetch under symfony (v1.4.6) as while fetching records from statement first
My problem is that NHibernate gets exponentially slow when fetching records from the database.
I have table from which I am fetching records for two time interval as

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.