DanielLeens opened a new issue, #13645:
URL: https://github.com/apache/seatunnel/issues/13645

   ## Improvement
   
   An append write to a fixed Elasticsearch index repeatedly creates and 
serializes the same `_index`/legacy `_type` action metadata for every row. In 
dev5cf050be3ffc77c0065d67d4eb8af83f24a2a620, 
`ElasticsearchRowSerializer.serializeUpsert` performs this work even when the 
index has no placeholders and no row-based document ID is used. The serializer 
is rebuilt for table/schema changes. Sanitized full-engine JFR identifies 
metadata construction/serialization as allocation work; its sampled weights do 
not prove a whole-job savings estimate.
   
   Retain at most one immutable serialized index-action header per serializer, 
only for the existing FixedValueIndexSerializer path. Preserve exact JSON 
escaping, legacy type metadata, row-specific document content, dynamic indices, 
primary-key update/delete actions, error propagation and schema-evolution 
reconstruction. Publish the immutable cached String safely without adding an 
unbounded map, new option or dependency.
   
   The currently measured pipeline still needs improvement: the separate 
payload-newline candidate plus existing JDBC metadata-cache PR13589 did not 
pass strict three-pair superiority (one completed pair74.096/74.025s and 
another71.086/72.886s for DataX/SeaTunnel). This is a new bounded serializer 
optimization, not a claim that caching already solves the full performance gap. 
Validate on the same existing host with1million rows, the declared19-field 
common JSON model, equivalent settings, all-value reconciliation and at 
least3alternating complete-engine pairs. No performance claim before validation.
   
   Scope: only this serializer, existing focused tests, existing Elasticsearch 
integration coverage and matching English/Chinese sink documentation. No 
API/default/row-format/dependency/POM/engine/core or retry changes. The 
original per-row serializer dates to #2330; the current CDC/unkeyed 
serializeUpsert/createMetadata split arrived in #3673, with error-code cleanup 
in #5978.
   
   Open/closed searches for Elasticsearch metadata cache and 
FixedValueIndexSerializer found no matching PR. #13589 concerns JDBC 
schema-conversion metadata; #13637 concerns the final bulk newline copy; #13629 
is a separate response-tree experiment. Those implementations are not 
duplicated here. Repeat the duplicate check before submission.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to