Hi have a MySQL table that I want to do mainly range search on, and I want it fast. All new data is first stored in MySQL, then delta-imported into Solr every minute using DIH. About 20,000 rows are generated each day.
MySQL Schema
The MySQL table contains 6 columns that I want to do range search on (of which 2 are TIMESTAMPs, and there is a pair of geospatial coordinates), 12 columns are TINYINT containing either 0 or 1. There are 30 other columns that do not need to be searched, of which one is the primary key id.
Problem: Is it advisable to store all 48 columns in solr and do the search only in solr? Or should I only have columns I want to search on be stored in solr, and retrieve just the id of the search results from solr, then SELECT the rows that I want to use from the MySQL table?
All help appreciated! :)