Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4626586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:26:31+00:00 2026-05-22T03:26:31+00:00

I have a page with a Google map. On page load, there is only

  • 0

I have a page with a Google map. On page load, there is only one marker and the user can dynamically add markers with a form.

I retrieve coordinates in database by using AJAX call. Each call return 150 markers. So, if I have to retrieve more markers, I do an other call until all markers are displayed on my map.

I have noticed (with load 2500 markers and firebug) time to execute server side action increases for each call.

Anyone can explain me why and if there is a way to fix it (because, at the end, calls take about 30s) ?

EDIT :

Execution time for each call (try to retrieve about 2500 markers) :

request 1  : 2.54s
request 2  : 1.83s
request 3  : 1.25s
request 4  : 1.31s
request 5  : 1.4s
request 6  : 1.81s
request 7  : 2.86s
request 8  : 8.25s
request 9  : 20.06s
request 10 : 19.25s
request 11 : 23.33s
request 12 : 25.86s
request 13 : 26.62s
request 14 : 27.85s
request 15 : 32.37s
request 16 : 34.91s
request 17 : 35.82s
request 18 : 36.7s

The function is exactly the same for each call and return value has same type and same length.

I do many calls in order to user can continue to work on map when markers are loading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:26:32+00:00Added an answer on May 22, 2026 at 3:26 am

    If you’re using a session_start in the called script, then only a single call can execute concurrently because the session file is locked until the first call script terminates and releases that lock, or it’s manually released with a call to session_write_close(), wherupon the next queued call can run and lock the file in turn.

    It might be easier to use a single call to retrieve all the marker data in one go, rather than a lot of single calls for each group of 150 marker entries… this will bypass any session locking issues, because only a single script is being executed; and is also more efficient for the network overheads

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Google Map on one web page where I want to disable
I have a page upon which a user can choose up to many different
I have a page which shows a Google map. I'd like to use Javascript
I have a map on a page which displays several places with markers and
I have a page with a Google Maps mashup that has pushpins that are
I have a Google App Engine app - http://mylovelyapp.appspot.com/ It has a page -
I have a page where there is a column and a content div, somewhat
I have a page with a Google Maps div: <div id=map_canvas style=width: 100%; height:
Is there any way to have a map's placemark call a javascript method on
I am using Google Maps API to display a map on a certain page.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.