You are viewing a single comment's thread from:

RE: New Uganda Steemians - please follow, upvote and support them

in #promo-steem7 years ago

Please avoid using LIKE in queries when targeting the Comments table. This is resource killing for the server as the Comments table contains nearly 50 million rows.

json_metadata is FTS (Full Text Search ) enabled. You can use CONTAINS() predicate.

Replace json_metadata like '%uganda%' with CONTAINS(json_metadata, 'uganda') in your queries. It will execute MUCH faster and won't penalize other users!

Sort:  

Hi Arcange,
thank you very much for the hint!

Regards, Achim