Re: Unique constraint

2008-12-18 Thread Slava Gorelik
t; On Thu, Dec 18, 2008 at 7:21 PM, Clint Morgan >>> >>>> >>>>> wrote: >>>>> >>>>> >>>> >>>> >>>> >>>>> You could maintain an index, and then use the index to jump right to >>

Re: Unique constraint

2008-12-18 Thread stack
int Morgan wrote: You could maintain an index, and then use the index to jump right to rows for the column value(s) in question. See the tableindexed package for more info.. cheers, -clint On Thu, Dec 18, 2008 at 4:37 AM, Slava Gorelik wrote: Hi.I'm trying to implem

Re: Unique constraint

2008-12-18 Thread Slava Gorelik
>> for the column value(s) in question. See the tableindexed package for >>> more >>> info.. >>> >>> cheers, >>> -clint >>> >>> On Thu, Dec 18, 2008 at 4:37 AM, Slava Gorelik >> >>> >>>> wrote: >>>

Re: Unique constraint

2008-12-18 Thread stack
Morgan wrote: You could maintain an index, and then use the index to jump right to rows for the column value(s) in question. See the tableindexed package for more info.. cheers, -clint On Thu, Dec 18, 2008 at 4:37 AM, Slava Gorelik wrote: Hi.I'm trying to implement U

Re: Unique constraint

2008-12-18 Thread Slava Gorelik
nt > > On Thu, Dec 18, 2008 at 4:37 AM, Slava Gorelik >wrote: > > > Hi.I'm trying to implement Unique constraint on some column, but it looks > > like there no other solution than to scan all data. > > This solution is problematic from the performance perspectiv

Re: Unique constraint

2008-12-18 Thread Clint Morgan
You could maintain an index, and then use the index to jump right to rows for the column value(s) in question. See the tableindexed package for more info.. cheers, -clint On Thu, Dec 18, 2008 at 4:37 AM, Slava Gorelik wrote: > Hi.I'm trying to implement Unique constraint on some column

Unique constraint

2008-12-18 Thread Slava Gorelik
Hi.I'm trying to implement Unique constraint on some column, but it looks like there no other solution than to scan all data. This solution is problematic from the performance perspective. Is it possible to implement this in the better way ? Best Regards.