On Thursday, June 30, 2011 9:43:39 PM UTC-4, Nick Arnett wrote: 
>
>
>
> On Thu, Jun 30, 2011 at 4:15 PM, Anthony <[email protected]> wrote:
>
>> IS_NOT_IN_DB does take a DAL Set object as the first argument, so you can 
>> limit the records checked to a particular set within the table (see 
>> http://web2py.com/book/default/chapter/07#Database-Validators). However, 
>> I'm not quite sure what you're trying to do here.
>>   
>> I think what he wants is the equivalent of Django's "unique together", 
> which I'm also trying to figure out.  IS_NOT_IN_DB seems to accomplish it, 
> but is that going to create a unique index on the combined fields? 
>  Otherwise, it will be expensive to do inserts.
>
 
I don't think web2py automatically creates any indexes -- see 
http://web2py.com/book/default/chapter/06#Indexes.
 

Reply via email to