Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

HGETALL on 2,7 million recrods (9 fields) took 40 seconds #485

Answered by Grokzen
pnthai88 asked this question in Q&A
Discussion options

You must be logged in to vote

@pnthai88 This is not a issue but a question so moved it to discussions section.

Basically i do not know of any other way of getting data faster then what you are doing, due to the huge amount of data you will hit some basic limitations just for the simple fact that converting 1000 values will take X ammount of time no matter what you do and allocating memory and converting things in python will just take time and with 2.7 mil records that will take time.

However, i would not recommend that you use Threads for this kind of work, depending on what type of work you do with the data itself you should really look at multiprocessing instead of maximize the number of cores you can run in parall…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pnthai88
Comment options

@pnthai88
Comment options

@Grokzen
Comment options

Answer selected by pnthai88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #483 on October 03, 2021 20:15.