Answered

Personio API being slow

  • 21 February 2023
  • 2 replies
  • 96 views

I’m trying to sync Personio employee data with a third party tool. I’m using the code example provided in api docs:

const sdk = require('api')('@personio/v1.0#1fzp...');

sdk.auth('eyJ0eX…');
sdk.getCompanyEmployees({limit: '100', offset: '0'})

Doing auth-get on a loop, until I fetch all the data. 

When using page size of a 100, each request to getCompanyEmployees takes 20-30 seconds. 
If I reduce limit to 10, request times range from 3 to 13 seconds. Leaning towards the lower end. 

Is this expected? Are there any best practices to follow, to speedup getting the data?

icon

Best answer by Ale Lorefice 22 February 2023, 09:35

View original

2 replies

Userlevel 1
Badge

Hi @ignasv!

I’m Ale, a developer from Performance & Development product. I think you will get better support at the developer hub discussions section as there they take care of covering technical questions specially around our public API and here we focus more on the P&D add-on product related topics. Please ask your question over there. 🙏🏼

Have a nice day!

Ale.

Thanks. Re-posted on the right forum.

Your reply