[google-appengine] Re: Managing Very Large one to many relationships

2009-10-13 Thread Kevin Pierce
> > > > Query q = pm.newQuery(Parent.class, "key== k"); > > k.declareParameters("Long u"); > > List result; > > result = (List) q.execute(key); > > > > with a huge number of children, wouldn&#x

[google-appengine] Re: Search API Rate limiting - App Engine

2009-10-12 Thread Kevin Pierce
gt; Akshar > > On Oct 9, 10:27 pm, Kevin Pierce wrote: > > From the linked to api > > "It is possible to whitelist both accounts and IP addresses" > > > > If your calls are made by signing with your account, it should result in > an > > acco

[google-appengine] Re: Will reducing model size improve performance?

2009-10-10 Thread Kevin Pierce
rties of a model are fetched simultaneously. Will the old > > unneeded properties still transfer over RPC on my dime and while users > > wait? In other words: if I want to reduce the size of my entities, is > > it necessary to migrate the old entities to ones with the new > &g

[google-appengine] Re: Search API Rate limiting - App Engine

2009-10-09 Thread Kevin Pierce
scussion on the above problem > (with no easy solution): > > http://groups.google.com/group/twitter-development-talk/browse_thread/thread/e8f1fe375aff50a > > Akshar > > > -- Kevin Pierce Software Architect VendAsta Technologies Inc. kpie...@vendasta.com (306)955.5512 ext 103

[google-appengine] Re: using ListProperty or using Relationship Model

2009-10-09 Thread Kevin Pierce
> Why not simply add the tags to the URL entity? > > class URL(db.Model): >url = db.StringProprety() >tags = db.StringListProperty() > >@classmethod >def fetch_by_tag(cls, *tags): >query = URL.all() >for t in tags: >query.filter(

[google-appengine] Re: using ListProperty or using Relationship Model

2009-10-08 Thread Kevin Pierce
a > 1000 urls, there will be a 1000 lists of tags which will have to be > traversed to find the target_tag. Assuming each list has 100 or so > elements, that's an awful lot of reading. The problem worsens, > obviously, for more urls (as is likely to be the case in my app) and >

[google-appengine] Re: Optimizing BigTable queries for a timestamped class

2009-10-06 Thread Kevin Pierce
uence > > happens: > > (i) an SSTable is written that contains rowkeys = 1,2,3,5; > > (ii) I commit an entity with rowkey 4. > > Does the SSTable get deleted and recreated? Is guarantee 1 broken and > > my entity(key=4) written to a different SSTable? The answer t

[google-appengine] Re: Issue with GAE caching which gives undesirable results

2009-07-20 Thread Kevin Pierce
Python is "caching" it at the class level. It looks like you are defining GetDomain.domain to os.environ['SERVER_NAME'] only once on its first usage per server instance. a) Try using a property/function to return os.environ['SERVER_NAME'] or b) use a class instance defined attribute such as d