Task #13272

Use resource's id instead of the full resource to create/update the Elasticsearch document

Added by José Raddaoui Marín over 1 year ago.

Status:NewStart date:03/13/2020
Priority:MediumDue date:
Assignee:-% Done:


Category:Performance / scalability
Target version:-
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:


The functions used to update and delete Elasticsearch documents receive the hydrated resource to perform the update. However, the majority of documents are generated using raw SQL and, in some cases, those resources are hydrated from the database just to call the update function, adding an unnecessary burden to the process. For example:


These functions determine the ES index type (and related model) using the resource's class name, something that could be passed directly to the functions:


Related issues

Related to Access to Memory (AtoM) - Task #13261: Improve Elasticsearch indexing process Verified 02/16/2020


#1 Updated by José Raddaoui Marín over 1 year ago

  • Related to Task #13261: Improve Elasticsearch indexing process added

Also available in: Atom PDF