You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redis is a key-value database that utilizes the concept of key and value to store data, we can use methods such as GET key to fetch value. when querying Redis data through Trino, the following sql is used in many cases:
select*fromredis.schema.table where redis_key ='key_data'limit100;
This sql should return the record instantly, however it is not, it will take a long time to get the record. The reason is that Trino uses SCAN first, it will keep scanning data until the specified key is scanned, It takes a lot of time.
Redis is a key-value database that utilizes the concept of key and value to store data, we can use methods such as
GET key
to fetch value. when querying Redis data through Trino, the following sql is used in many cases:This sql should return the record instantly, however it is not, it will take a long time to get the record. The reason is that Trino uses
SCAN
first, it will keep scanning data until the specified key is scanned, It takes a lot of time.I see that stack users have also raised this problem, so I plan to do some optimization.
https://app.slack.com/client/TFKPX15NC/CGB0QHWSW/thread/CGB0QHWSW-1639826990.317500
The text was updated successfully, but these errors were encountered: