vodvud / php_zklib

GNU General Public License v2.0
23 stars 19 forks source link

if device is having more punches it fails #28

Open alamnaryab opened 4 years ago

alamnaryab commented 4 years ago

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)

vodvud commented 4 years ago

Hello!

1) Check the network connection to slow devices. Also I had problem with one device, ZKTeco service checked it and said "device too old and slow, you need new one" 2) Not possible (see https://github.com/vodvud/php_zklib/issues/1#issuecomment-367200402) , if you have a lot of punchng then you can get attendance and clear device very often. (see example https://github.com/vodvud/php_zklib/issues/25#issuecomment-580313373)

Devices isn't for keep big data and operate fast. Better store the attendance in fast DB and clear up device :)

kmkmahesh commented 4 years ago

I noticed the same issue with this, i also noticed if the punches are above 1800 in my devices getting issue, and i checked the same device with around 1400 punches gives the data