Hi dburns,

You can supply "indexed=False" to the constructor for b. You can also
use a TextProperty, which is exactly equivalent to an unindexed
StringProperty.

-Nick Johnson

On Thu, Jul 9, 2009 at 1:57 PM, dburns<[email protected]> wrote:
>
> If I have something like:
>
>  class MyModel(db.Model):
>    a = db.StringProperty()
>    b = db.StringProperty()
>
> and I know that I will never look up an entry by 'b', only by 'a', is
> it good practise to prevent the automatic indexing of 'b'?  Presumably
> that would save space, and time on updates.
>
> Second question is how?  I vaguely require seeing some way to prevent
> indexing on a field, but I've been scouring the indexing docs and
> can't find it now.
>
> Thanks.
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to