Reputation: 163
We plan to use MySQL as the RDBMS in web app. But also send the data to Solr to support faster search. I am seeking advice on which methodology is recommended and why:
http post
, send data to both mySQL and Solr.The app will have user posted comments and different range attributes requiring full text search and facets.
Edit: For those who find their way to this topic, solr wiki has a brief write up on this at https://wiki.apache.org/solr/SolrPerformanceFactors
Upvotes: 0
Views: 351
Reputation: 1086
As younghobbit suggested more insight into the kind of application data makes this easier to answer.
Even so I will layout some points known to me and then you might be able to make slightly more informed choice.
Personally I think approach 1 is better but you may want to tweak the frequency of the cron to get a near-real time search response. Truly real time can only be achieved by approach 2, but you have to consider about how you deal with updates, transactions in connection with SOLR. Please get good understanding of the commit, rollback, optimize operations in SOLR before choosing either options.
Upvotes: 1
Reputation: 13402
If you need to serve users with near-real
time data then you should go with second approach. It will update the data in solr indexes and make is available for users to search.
If you don't need near-real time search for users then you should go by the first approach, which is updating the index every 30 minutes.
But remember these do might require some different configuration in your solr setup.
Upvotes: 1