]> git.koha-community.org Git - koha.git/commit
Bug 7188: C4::Context::db_scheme2dbi does case-insensitive grep
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Sep 2011 22:58:41 +0000 (00:58 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Wed, 16 Nov 2011 12:44:06 +0000 (07:44 -0500)
commitedcbd0cde07d496ceb7b01e60ee7f21995b37274
tree8cd35e6a262318c5102c1bae5c0dbcfaa138b87b
parenta6b7a1432ab6339d0589f8104da2d7ebb21cea85
Bug 7188: C4::Context::db_scheme2dbi does case-insensitive grep

Checking NYTProf in C4::Context, it appears that the /i flag is highly time-consumming
As we don't support anything outside from mysql, returning directly mysql directly

If in a future version PostgresSQL works, then we will have to update this sub. But if an ORM is introduced, this code will be removed completly anyway

Testing note:
Drops execution time of the line from 300ms to 20 microseconds (in my testing).
(cherry picked from commit 0f8db0c53866afaf5171869359c558d1e9f4325e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Context.pm