Page 1 of 1

Performance issues with XLocate 2

Posted: Fri Mar 06, 2020 1:19 pm
by lk-tis
Hello,

we have a performance problem with the XLocate 2 API
We have a list of ~1000 addresses that we are geocoding for testing, and PTV2 performs significantly worse than PTV1.

The average time needed for an address is ~200ms for version 1 and 1 second (970ms) for version 2.

We noticed that version 2 returns much more results than version 1 (about 10 times as many). We suspect that one factor of the performance problem lies there.

How can we improve the performance of version 2? Is it possible to limit the maximum number of results?

Re: Performance issues with XLocate 2

Posted: Fri Mar 06, 2020 1:45 pm
by Bernd Welter
Hello Lennart,

I will forward this topic to DEV right away.

Can you give us some details about the structure of the data?
Did you already try to apply the SearchOption "allowedCountries" which has been invented in 2.17?
https://xserver2-europe-eu-test.cloud.p ... rchOptions

It will probably have a positive impact on performance (I caldulated a batch of several thousand addresses this week and by using this parameter I was able to reduce the processing time to 25% ;-) )

Best regards,
Bernd

Re: Performance issues with XLocate 2

Posted: Mon Aug 31, 2020 1:02 pm
by Bernd Welter
Hello Lennart (and others),

I just received 1000 addresses for multifield search and applied them with/without the search option "allowed countries". The difference in the performance is significant - which is no surprise becaue all the addresses beloing to switzerland which covers a very small region of the world:

  • xLocate 2 without allowedCountries: 176 seconds ( 100% )
  • xLocate 2 with allowedCountries={"CH"}: 27 seconds ( 15% )

Use this search option whenever possible!

Bernd