[#51] Long execution time - getAvailableTimeIntervals

Migrated from Redmine #51 | Author: Mateusz Przybylek (DIABDIS)
Status: Feedback | Priority: Normal | Created: 2017-10-03


Hi SimplyBook team!
We started to use your API in out production system but it seems very laggy for crucial methods.
Gathering available times method for 1 month takes around 12-30 seconds, it is far away from being comfortable for user.
Maybe you can help us to improve that.

curl -X POST \
  http://user-api.simplybook.it/ \
  -H 'accept: application/json' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: da0d0f35-96c9-7230-3fb9-8dfa6df7f531' \
  -H 'x-company-login: diabdis' \
  -H 'x-token: 8fefb494b556a75b7c312aab5a1ece859057e96e597822a761dd3a49b3b700e2' \
  -d '{
	"jsonrpc": "2.0",
	"method": "getAvailableTimeIntervals",
	"params": 
	{
		"from": "2017-10-03",
		"to": "2017-11-02",
		"eventId": 1
	},
	"id": 11
}'

Redmine Admin wrote:

you should not get it for one month. 1 week is maximum interval, this will be limited in API