Ok so I have a rails application called HashtagMapper.com which finds tweets by the thousands and maps them. The problem I am having is that between geocoding 1000+ queries can take up to 10 seconds, and then the .create()
call takes about 10ms, which for 1000 queries is 10 seconds.
How can I create 1000+ DB objects in rails all at once? Right now I am calling
SearchResult.create([ { :2D => array }, { :of => SearchResults } ])
For the 1000+ objects. Would plain SQL be faster? How?