to improve indexing performance, we should let Elasticsearch do the update
ultrasaurus opened this issue · 2 comments
ultrasaurus commented
To implement nested documents, the current code fetches the whole document from Elasticsearch and then sends an update with a new document. This is highly inefficient, when es has the ability of updating a nested doc:
https://github.com/18F/open-data-maker/blob/dev/lib/data_magic/index.rb#L79-L85
pkarman commented