app-engine-ndb Questions

1

Solved

I have a POST method which calls a few tasklets. These tasklets do have yields in them, and I do have some x.put_async() in my code. So I don't want it to return before all the async stuff is done....
Grenada asked 4/9, 2012 at 2:34

1

Solved

based on this docs https://developers.google.com/appengine/docs/python/ndb/entities#deleting_entities well, im still not sure why i cannot do the delete on NDB: def get(self): id = self.request....
Pegmatite asked 14/8, 2012 at 8:55

2

Solved

I would like to create movies database, where user will be able to mark movies he/she watched and liked: class Movies(ndb.Model): watched = ndb.UserProperty() liked = ndb.UserProperty() Will t...
Paleoclimatology asked 29/7, 2012 at 16:53

2

Solved

Is there an efficient mechanism for querying by the number of items in a repeated property in NDB? I'd like to do something like: Class.query(class.repeated_property.count == 2) but of course t...
Unimproved asked 21/7, 2012 at 17:40

1

Solved

I am using NDB with python 2.7 with threadsafe mode turned on. I understand that querying for entities with NDB does not use local cache or memcache but goes straight to the datastore unlike getti...
Insufferable asked 22/7, 2012 at 0:24

1

My question is, what is the best way to create a new model entity, and then read it immediately after. For example, class LeftModel(ndb.Model): name = ndb.StringProperty(default = "John") date =...
Roslynrosmarin asked 21/7, 2012 at 9:21

1

suppose I have this code: class A(ndb.Model): prop = ndb.StringProperty(verbose_name="Something") m = A() m.prop = "a string value" Now of course if I print m.prop, it will output "a string va...
Disappearance asked 23/6, 2012 at 2:13

1

Solved

I have read this question and the simple and clear answer but it's not useful in my case because the answer don't consider the nested for. please, see the code: class SuperCat(ndb.Model): class C...
Antre asked 20/6, 2012 at 15:24

2

Solved

I am looking around in order to get an answer what is the max limit of results I can have from a GQL query on Ndb on Google AppEngine. I am using an implementation with cursors but it will be much ...
Puseyism asked 10/6, 2012 at 11:51

2

Solved

I'm in the process of writing my first RESTful web service atop GAE and the Python 2.7 runtime; I've started out using Guido's shiny new ndb API. However, I'm unsure how to solve a particular case...

1

Solved

I'm trying to create an ndb model where each record has an unique field "name". I would like to define this field as the key_name field and use it to look up the records. Do I have to include a nam...
Astoria asked 18/4, 2012 at 18:31

1

Solved

How do I get the equivalent result of the following query in NDB? Entity.all(keys_only=True).fetch(20) I know you can pass 'keys_only=True' to the iter() method. But what if I want to perform a ...
Womanlike asked 18/4, 2012 at 6:20

3

Solved

in my app i have a few batch operations i perform. unfortunately this sometimes takes forever to update 400-500 entities. what i have is all the entity keys, i need to get them, update a property a...

1

Solved

My question is very fundamental, I want to know straight forward and right way to access attribute values of parent entity from a child in App Engine Python. For example I have following model sche...

1

Solved

With the recent release of NDB, is there any reason to keep using the old datastore API? I'm working on an application that currently uses the old datastore API, and I have put quite some effort i...
Haskell asked 1/4, 2012 at 11:49

2

Solved

Taken from the Python NDB Overview: When the application reads an entity, that entity is automatically cached; this gives fast (and inexpensive) reads for frequently-read entities. ... The NDB fun...
Wolfsbane asked 31/3, 2012 at 7:0

1

Solved

Is there an equivalent for modelname_set (a back-referenced property) in Google App Engine's NDB? In the old DB a Model entity had described the back-reference property as: The name of the back...
Ixtle asked 29/3, 2012 at 0:26

© 2022 - 2024 — McMap. All rights reserved.