C
C
Castiel2017-06-08 13:34:47
Redis
Castiel, 2017-06-08 13:34:47

Redis Why is fetching long?

There is a server with a radish, 250-400k records and all the responses to the selection by key are long from 10 to 30 seconds .. keys like word_123_user_3
Maybe we are doing something wrong or is there some other solution to quickly write and read information in parallel?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-06-08
@BuriK666

Are you doing keys word_123_*?
https://redis.io/commands/keys
Use SCAN

R
ralaton121, 2017-06-08
@ralaton121

There is also a Tarantula (trantool).
https://habrahabr.ru/search/?q=tarantool#h
But I would still start differently - with profiling.
Whether at you badly fulfills search.
Either you are trying to upload a million already selected records from the server to the client.
Either the key does not match what you are looking for.
You need to profile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question