Re: wildcard makes seq scan on prod db but not in test

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

 



Marcus Engene <mengpg2@xxxxxxxxx> wrote:
 
> I have a table with a few million rows and this index:
> CREATE INDEX bond_item_common_x7 ON bond_item_common 
> ((lower(original_filename)));
 
> Dropping the wildcard for the like, both databases uses the index.
> 
> Is there a way to convince Postgres to try not to do full table
> scan as much?
 
That could be a difference is collations.  What do you get from the
query on this page for each database?:
 
http://wiki.postgresql.org/wiki/Server_Configuration
 
-Kevin

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


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux