I am using like to find separate words in table that stores json data:
Json:
{"address_components":[{"long_name":"Calle Puerto Rico","short_name":"Calle Puerto Rico","types":["route"]},{"long_name":"Huelva","short_name":"Huelva","types":["locality","political"]},{"long_name":"Huelva","short_name":"Huelva","types":["administrative_area_level_2","political"]},{"long_name":"Andalucía","short_name":"AL","types":["administrative_area_level_1","political"]},{"long_name":"España","short_name":"ES","types":["country","political"]},{"long_name":"21005","short_name":"21005","types":["postal_code"]}],"formatted_address":"Calle Puerto Rico, 21005 Huelva, España","geometry":{"bounds":{"south":37.2829639,"west":-6.943094999999971,"north":37.2835676,"east":-6.9426796000000195},"location":{"lat":37.28329129999999,"lng":-6.943091900000013},"location_type":"GEOMETRIC_CENTER","viewport":{"south":37.2819167697085,"west":-6.944236280291534,"north":37.2846147302915,"east":-6.941538319708457}},"place_id":"ChIJY-R7zcHPEQ0RKhJrb9j_Ec8","types":["route"]}
AND LIKE:
where json LIKE '%\"espana\"%' OR json LIKE '% espana %' OR json LIKE '% espana\"%' OR json LIKE '%\"espana %' OR json like '%espana\"%' OR json like '%\"espana,%' OR json LIKE '% espana,%'
The problem is this is slow as hell and it causes a Ripple Effect on the rest of the site making it load slow and crash.
How can I match individual words in json faster?
Thanks
PS. My server is MYSQL