Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if device is having more punches it fails #28

Open
alamnaryab opened this issue Feb 26, 2020 · 2 comments
Open

if device is having more punches it fails #28

alamnaryab opened this issue Feb 26, 2020 · 2 comments

Comments

@alamnaryab
Copy link

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
Copy link
Owner

vodvud commented Feb 27, 2020

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 getAttendance return empty value #1 (comment)) , if you have a lot of punchng then you can get attendance and clear device very often. (see example Supported Model #25 (comment))

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

@kmkmahesh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants