Re: how to speed ilike

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Julius Tuskenis  wrote:
 
> I've made a function that converts lithuanian letters to latin and
> use it like fnk_latin(username) ILIKE fnk_latin('kestas').
 
> Now the problem is performance.
 
> Maybe some special index would help?
 
create index tblname_username_latin on tblname
((fnk_latin(username)));
 
You might want to have that function force all letters to lowercase. 
It might also help to specify varchar_pattern_ops.

-Kevin

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux