Count dynamically created points that fall within polygon(s)

Discussion created by lucbelliveau on Aug 11, 2010
I am designing an application where users may create an arbitrary number of points (either manually or via a CSV upload) on a map...

I would like to be able to run a query to determine the total number of individual points per county...   I can easily run a query per point to determine which county the points falls within, but if the CSV file has thousands of points, running one query per point will be much too slow...

Is there a way to accomplish this using the Javascript API ?

Any help would be greatly appreciated!