so we should test that use case (ie: <add> containing 10000 small
documents;

For processing a single request with 10000 documents, the existing XPP update handler is faster then the new StaxUpdateHandler.

XPP: 6888 6714
STAX: 8665 8313

I looked into it, and the difference seems to be entirely in the logging strategy. the XPP handler prints out a single line for all 10K docs:

INFO: added id={0,1,2,3,4,5,6,7,8,9,10,11,12,13,1...

the STAX one sends each document to the processor that logs the add individually:

INFO: added id={0} in 28ms  [29]
INFO: added id={1} in 3ms  [33]
INFO: added id={2} in 1ms  [35]
...

If I remove logging, the same test runs in:

STAX: 6783 6834

essentially equivalent to the XPP version

ryan

Reply via email to