Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello in my project i have a function in python that read from database (psql) about 5 rows each 6000 lines. but i have a problem it take long time!!! > 10 h .
so i used thread (so about 5000 tread will begin) but i got some problem!!!
N.B my function execute normal when i don't use threading !
any help? thanks in advance.

What I have tried:

i Google it but i don't found anything !
Posted
Comments
Richard MacCutchan 10-Mar-17 8:59am    
Reading that amount of data will always take a lot of time. Data size times number of items time time per item.
Member 11436383 10-Mar-17 9:04am    
from you what is the best solution speed up ?
Richard MacCutchan 10-Mar-17 9:50am    
Stop trying to read so many records. There is no alternative.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900