- August 12–22: Online Training (EU shift)
- Enrollment
- FOSDEM Impressions
- June 8–18: Online Training (US shift)
- Non-monetary micro sponsoring
- November 11-12 in Frankfurt am Main
- Online-Training in July and August
- Oracle + PostgreSQL
- Party time
- PostgreSQL Performance Event
- SQL Server Performance Kurs in Stuttgart
- SQL Server performance training in London
- Shipping Terms
- The two top performance problems caused by ORM tools
- Top Tweets January 2013
- Training Survey
- Training and Conference Dates
- Use The Index, Luke
- Ask
- Consulting
2012-03-13Functions
The index on LAST_NAME has improved the performance considerably, but it requires you to search using the same case (upper/lower) as is stored in the database. This section explains how to lift this restriction without a decrease in performance.
- DB2
Function-based indexes available for DB2 on zOS but not on other systems.
The backup solution is to create a real column in the table that holds the result of the function or expression. The column must be maintained by a trigger or by the application layer—whatever is more appropriate. The new column can be indexed. The where clause must use the new column (without the expression).
- MySQL
MySQL 5.6 does neither support virtual columns nor function-based indexing like described below. MySQL is case-insensitive by default, but that can be controlled on column level. Virtual columns are in the queue for version 6.
The backup solution is to create a real column in the table that holds the result of the function or expression. The column must be maintained by a trigger or by the application layer—whatever is more appropriate. The new column can be indexed. The where clause must use the new column (without the expression).
- Oracle
The Oracle database supports function-based indexes since release 8i. Virtual columns were additionally added with 11g.
- PostgreSQL
PostgreSQL fully supports Indexes on Expressions since release 7.4 (partially supported since 7.2)
- SQL Server
SQL Server supports Computed Columns that can be indexed since release 2000.
Stay connected:
RSS Feed
Like on Facebook
Follow me on Twitter
Share at Google+
RSS FeedFlattr this! Follow me on TwitterShare at Google+Like on Facebook