How can queries like
SELECT * FROM sometable WHERE somefield LIKE '%value%'
be optimized?
The main issue here is the first wildcard which prevents DBMS from using index.
Edit: What is more, somefield value is solid string (not a piece of text) so fulltext search could not be performed.