Score:-1

View page showing users through a leaflet map triggers request timeout error

in flag

I'm building a view displaying users in a leaflet map.
Specifically, the view has the following settings:

  • The format is Geolocation CommonMap showing fields.
  • The fields selected are first name, last name and geolocation field; in the filter criteria I've selected some user fields plus some Profile fields (the Profile entity is linked to the User entity through a relationship)
  • There is no pagination
  • The view is supposed to show roughly 2000 users/points
  • The Marker Cluster setting is enabled

Whenever I press save and check the page, the website throws request timeout error. It seems that when the pagination was enabled, the view page was working fine since it had less data to load.

UPDATE
I tried to remove the Relationship with the Profile entity and pages is not crashing anymore, so I assume the query is working better and that Relationship is making the page heavier when the data is huge.

So, I have one question: how do I optimise this view when the user number is high meaning when the data load is massive?

id flag
Can you limit this to one question please?
in flag
Yes. I've just edited my question
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.