which one is json column that stores json array.
I need to search on that column
For eg if in input currency provided then based on that input it will search on that column and fetch price based on that currency.
Currently my query is taking
20 sec , i used json_table.
But i need to achieve it in faster way
Hi It’s urgent please, If anyone can help Much appreciated
Try do search on code instead of db
Thanks @PatrickT80 Will it be more performative?
Probably but i’ve no data to confirm my hypothesis; depend on use case. MySQL support sql select on json field? Postgres allow it accessing a JSON key and its content
Yess there are json functions in mysql but its not that much beneficial looks like. I tried two ways 1. Created columns for json_data using json_table join then search on those column 3. Used json_extract functions and then search on those None of above is making any drastic difference.
Why using JSON data to make sql operation like join?
https://stackoverflow.com/questions/38389075/how-to-create-index-on-json-column-in-mysql
https://planetscale.com/blog/indexing-json-in-mysql
https://dev.mysql.com/doc/refman/8.4/en/create-table-secondary-indexes.html
Обсуждают сегодня