I need a row summary type of record that should be the only record
returned on a super query.  I've tried to just add it as a new
"summary" columnfamily, then add "summary" in "columnFamiliesToFetch"
on the Selector.  I am seeing some benefit over just pulling back all
the records, but it's not as big as I'd hoped or as compared to a null
selector. I think the problem is that I'm still paying the cost of
iterating over all the TermDocs even for my single record.

Are there any other ways I could use the current API to achieve this
effect in a more performant way?

The alternative I've come up with is to...
... add a (summarize()) hook in BlurReducer (just after
fetchOldRecords) that builds my summary document and ensures that it
becomes the prime doc.
... then add a summaryOnly flag in the selector that stops after
reading the first termDoc.

Anyone want to talk me off the fence on that one? :)

--tim

Reply via email to