Re: [web2py] Re: GAE datastore: how to unindex a field?

2012-08-12 Thread Felipe Meirelles
Just reviving this topic. Its not setable via index.yaml.

On Wednesday, May 16, 2012 1:07:10 PM UTC-3, howesc wrote:
>
> actually the question at hand here i think is whether or not web2py can 
> support indexed=False in the property constructor when defining GAE 
> models: 
>
> https://developers.google.com/appengine/docs/python/datastore/propertyclass 
>
> class Property(verbose_name=None, name=None, default=None, 
> required=False, validator=None, choices=None, indexed=True) 
>
> i was hoping there was a way to specify that in index.yaml so that we 
> didn't have to do extra work in the web2py GAE dal.  i have not found 
> that there is or is not a way to specify that in index.yaml. 
>
> cfh 
>
> On 5/16/12 8:39 , Wikus van de Merwe wrote: 
> > This is really a GAE question, not related to web2py. By default the 
> > indexes are set automatically when you run your app in dev environment 
> > depending on what queries you use. But you can do it manually to by 
> editing 
> > the index.yaml (above the #AUTOGENERATED line). On the next deploy the 
> > indexes will be updated. 
> > 
> > To disable the autogenerated indexes and test your index definitions, 
> you 
> > can run your app locally with: 
> > dev_appserver.py --require_indexes 
> > 
> > Read this article for more details: 
> > https://developers.google.com/appengine/articles/indexselection 
> > 
> > 
>

-- 





Re: [web2py] Re: GAE datastore: how to unindex a field?

2012-05-16 Thread Christian Foster Howes
actually the question at hand here i think is whether or not web2py can 
support indexed=False in the property constructor when defining GAE models:


https://developers.google.com/appengine/docs/python/datastore/propertyclass

class Property(verbose_name=None, name=None, default=None, 
required=False, validator=None, choices=None, indexed=True)


i was hoping there was a way to specify that in index.yaml so that we 
didn't have to do extra work in the web2py GAE dal.  i have not found 
that there is or is not a way to specify that in index.yaml.


cfh

On 5/16/12 8:39 , Wikus van de Merwe wrote:

This is really a GAE question, not related to web2py. By default the
indexes are set automatically when you run your app in dev environment
depending on what queries you use. But you can do it manually to by editing
the index.yaml (above the #AUTOGENERATED line). On the next deploy the
indexes will be updated.

To disable the autogenerated indexes and test your index definitions, you
can run your app locally with:
dev_appserver.py --require_indexes

Read this article for more details:
https://developers.google.com/appengine/articles/indexselection




[web2py] Re: GAE datastore: how to unindex a field?

2012-05-16 Thread Wikus van de Merwe
This is really a GAE question, not related to web2py. By default the 
indexes are set automatically when you run your app in dev environment 
depending on what queries you use. But you can do it manually to by editing 
the index.yaml (above the #AUTOGENERATED line). On the next deploy the 
indexes will be updated.

To disable the autogenerated indexes and test your index definitions, you 
can run your app locally with:
dev_appserver.py --require_indexes

Read this article for more details:
https://developers.google.com/appengine/articles/indexselection



[web2py] Re: GAE datastore: how to unindex a field?

2012-05-14 Thread howesc
is that controllable via index.yaml?

On Monday, May 14, 2012 5:02:55 AM UTC-7, Felipe Meirelles wrote:
>
> Hi,
>
> I'm porting a commercial project from django + djangoappengine (
> http://www.allbuttonspressed.com/) to web2py and one thing I could'nt 
> find at all is how to manage per field indexes on App Engine.
>
> My project is database intensive so every entity is written hundreds of 
> thousend times a day and, as you may know, by default all datastore fields 
> are indexed on Bigtable and all indexed fields consume one "Datastore 
> write" tick, and that means I've to pay for it.
>
> Is there some way to unindex fields on web2py?
>
> Thanks!
>