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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:34:47+00:00 2026-05-14T14:34:47+00:00

I have 6000 data of district, subdistrict. I need to represent this on dependent

  • 0

I have 6000 data of district, subdistrict. I need to represent this on dependent dropdown. The datamodel is for example;

class Location(db.Model):
    location_name = db.StringProperty()
    //location_parent = db.IntegerProperty()
    location_parent = db.ReferenceProperty() //

location_parent is reference to key() or id()? Still cannot decide which one is good. When i use key() as reference then using JSON to create jquery dependent drop down. My page loading/query and rendering time the dropdown is quite slow? Can i use key().id() as drop down option value to lighten up the page load? Any better solution for this parent/child reference for the drop down?
For example:
for the district record/entities the location-parent is null, for sub district record location_name will contain reference to parent district record.

Other issue is to reverse geocoding the location to store or display geoPoint (lat,long)?
Is google MAP API always find the exact lat,long of specific region boundaries or any error checking for the result?

  • 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-14T14:34:47+00:00Added an answer on May 14, 2026 at 2:34 pm

    You’ve got several different questions there, but your primary schema is probably insufficient. You shouldn’t use string or integer properties to store a reference to another datastore entity. This is what db.ReferenceProperty is for. Once you’ve stored a proper reference to another datastore entity, you can easily refer to the entity’s key(), key().name(), or key().id(), as well as look up the entity using .get(), .get_by_key_name(), and .get_by_id().

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

Sidebar

Related Questions

I have a data like this: df: Group Point A 6000 B 5000 C
I have this code: http://pastebin.com/Sd9WKZFr When i call something like rate(60, -6000, 120000) it
have written this little class, which generates a UUID every time an object of
I have a very large text file and I need to gather data from
I have some points (about 3000) and edges (about 6000) in this type of
I have the following list data. data = [['2009-01-20', 3000.0], ['2011-03-01', 6000.0], ['2008-12-15', 6000.0],
I have an array of data that I'm getting from this form (form.php): <?
I have a ~ 6000 record set of data where each record has a
I have a set of data such as the following: annual_exp<-as.data.frame(c(6000,4200,240001,750,20000,3470,10500,2400,2280,36000,3600,20000,2000,12000,1200,3000,4500,64000)) annual_exp<-as.data.frame(annual_exp) I want
i have an ajax function which gets called and returns json data. this function

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.