we have around 20 devices, for some of the I can fetch all punches in few seconds while some are taking too longer to fetch punches.
I also tried to increate max_memery and max_timeout but still it is not returning and server gets hanged.
any idea how to deal with such situation?
1- avoid server getting hanged.
2-read punches in optimized manner when there are many (eg 20k or 40k punches)