Slow response times

60 views
Skip to first unread message

Benedikt Sutter

unread,
Jan 28, 2021, 12:41:31 AM1/28/21
to GeoAdmin API
Hey,

I've noticed some really slow response times in the last few days when using the `identify` endpoint for the ch.bfe.solarenergie-eignung-daecher layer and the `limit` keyword set, e.g.


This call now takes around 4 - 10 seconds to return, it used to be a few ms. If I omit the `limit` keyword, we're down to around ~1s.

I've checked outĀ thisĀ request and the correspondingĀ github issue, which makes me think this could be some sort of indexing issue as well?

Cheers & thanks

David...@swisstopo.ch

unread,
Jan 28, 2021, 2:59:19 AM1/28/21
to geoadm...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "GeoAdmin API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/76d80df9-913d-4075-b0cd-dbaaad9a815an%40googlegroups.com.

Benedikt Sutter

unread,
Jan 28, 2021, 3:02:27 AM1/28/21
to GeoAdmin API
Thanks for the update!

Benedikt Sutter

unread,
Feb 12, 2021, 3:22:55 AM2/12/21
to GeoAdmin API
Thanks for looking into this, i've checked out the issue & fix on GitHub, the query is way faster now.

However, I'm wondering whether there's an index missing in the DB, if I query


with an arbitrary point as geometry parameter, the first call takes anywhere between 5s - Guru meditation. All subsequent calls for the exact same point take around 15ms. If you change the point slightly (even increase or decrease one single digit after the decimal point), the call again takes > 5s. Subsequent calls then again again take ~15ms. I'm testing this with Postman, so I don't expect local caching to be the source of this weird behaviour. I also tested it across several browsers, i.e. make the first call on browser A, wait 5s until it returns. Do calls 2-n on browser B, admire the 15ms.

GeoAdminCh API

unread,
May 10, 2021, 2:29:17 AM5/10/21
to GeoAdminCh API
As mentioend inĀ https://github.com/geoadmin/mf-chsdi3/issues/3612#issuecomment-778158365Ā  related toĀ postgresqlĀ  stack. A work aroudn has been proposed
Reply all
Reply to author
Forward
0 new messages