increasing speed and efficiency of ajax call
Posted
by
user1048824
on Stack Overflow
See other posts from Stack Overflow
or by user1048824
Published on 2011-11-23T01:36:44Z
Indexed on
2011/11/23
1:50 UTC
Read the original article
Hit count: 130
I'm not the most disciplined dev, dont know standards and am self-taught so bear with me. I create stuff very logically and fast but not always using 'programming standards'.
I have a mobile app using geolocation API. it gets thousands of places from my db and makes gmaps v3 markers for the ones around the user's current location.
there is an ajax call from my JS to an aspx page that calls the database, makes a json string, and sends the json string to the javascript that then creates the google map markers.
would i save time if the json string was in a flat file? im not sure if, generally speaking, accessing a sql db from an aspx page is faster than c# file i/o on a flat file with pre-rendered JSON.
(of course, using the flat file, it would update everytime the db is updated)
© Stack Overflow or respective owner