elastigo icon indicating copy to clipboard operation
elastigo copied to clipboard

bulkindexer: get insights into how many docs are pending to be flushed

Open Dieterbe opened this issue 10 years ago • 3 comments

I want to track how many items are pending to be flushed. should be doable but with a simple len() on the channel, except that it's a private property, so it needs a wrapper function

Dieterbe avatar Mar 05 '14 16:03 Dieterbe

can you submit a PR?

mattbaird avatar Mar 05 '14 23:03 mattbaird

also, don't you want the value of docCt in bulk.go? or would you rather have the len of bulkChannel?

mattbaird avatar Mar 06 '14 00:03 mattbaird

i'm not sure TBH. i was looking at the code and couldn't figure out how it works.

Dieterbe avatar Mar 10 '14 15:03 Dieterbe