elastic/elasticsearch

Add CBOR-friendly bulk format

Open

#8481 aperta il 14 nov 2014

Vedi su GitHub
 (4 commenti) (0 reazioni) (1 assegnatario)Java (25.882 fork)batch import
:Distributed/CRUD>enhancementTeam:Distributedhelp wanted

Metriche repository

Star
 (76.700 star)
Metriche merge PR
 (Merge medio 2g) (1000 PR mergiate in 30 g)

Descrizione

The current bulk format in JSON uses the \n as end-of-line markers, allowing the coordinating node to parse just the metadata line, then skip over the body line.

CBOR doesn't have any disallowed characters or character sequences, so this mechanism will not work. Instead we should have a CBOR specific format which looks like this:

{ metadata line }
int_length_of_body_line
{ body line }

The int_length_of_body_line would allow us to skip to the next metadata line.

For the delete action, no int_length_of_body_line would be required, as we already know that it can't have a body.

Depends on #7640

Guida contributor