|
|
|
|
|
by timaelliott
5088 days ago
|
|
> For our geo-search API, we used PostgreSQL for many months, but once our Media entries were sharded, moved over to using Apache Solr. It has a simple JSON interface, so as far as our application is concerned, it’s just another API to consume. Does anyone have particular insight to share on this? Last I checked, Solr's geospatial searching methods are rather inefficient -- haversine across all documents, bounding boxes that rely on haversine and Solr4 was looking into geohashes (better but have some serious edge-case problems where they fall apart). Meanwhile PostgreSQL offers r-tree indexing for spatial queries and is blazing fast. Am I missing some hidden power about Solr's geospatial lookups that make it faster/better than an r-tree implementation? |
|
Having this exposed through an api that is standardized and maintained by someone else is also nothing to sneeze at. I'd trade a bit of performance for that kind of standardization and turnkey use in the right scenario.