3 ms·
Normally best practice is to return primary keys in ES and then do a lookup query in the db. Did you attempt this?
by cameronpm 3y ago
Normally best practice is to return primary keys in ES and then do a lookup query in the db. Did you attempt this?
- rajamaka 3y agoGot any links or documentation about this method by any chance? Not sure if you are talking about querying or syncing data here.
- lyu07282 3y agoI think what they just mean is that you only have all your searchable fields indexed in ES and then, when you do a search query, the only thing ES returns is PKs which you then do a second roundtrip to the database (or cache) with to get all the actual records from. Which means you don't have to worry too much about all the record information being in sync perfectly.