mage/Mage/src/main
Kyle Boutette 45b84f1e8d Fixes #7126 Introduce and use new lower_name column for card import
Profiling deck import revealed we spend most of the time running sql.
The specific query compared against `lower(name)` which is not under an index.
As a result, importing a deck could be quite slow since we were looking at
every single card in the game.

This change introduces a new indexed column, `lower_name`, and swaps
findCardsCaseInsensitive to run against it.

Optimally, we'd introduce an index here on `lower(name)` to avoid the
unnecessary column. ie,
`CREATE INDEX IF NOT EXISTS lower_name_index ON card (lower(name))`
However, H2 does not currently support indices on expressions.
2020-10-10 20:17:06 -05:00
..
java/mage Fixes #7126 Introduce and use new lower_name column for card import 2020-10-10 20:17:06 -05:00
proto specify proto2 syntax 2016-11-05 11:26:30 -07:00
resources GUI enchancements (themes, sound notification, deck validation) (#6755) 2020-07-17 19:15:02 +02:00