class ReadDiscussionsHandler

Constants

CHUNK_SIZE

How many discussions a single `SearchManager` query fetches, and how many read records are written per upsert statement.

One size for both: nothing is gained by writing in smaller batches than are read, since every record read ends up written (bar the few filtered out below).

Methods

__construct( SearchManager $search)

No description

void
handle( ReadDiscussions $command)

No description

array
narrowingFilters(array $filters)

No description

Details

__construct( SearchManager $search)

Parameters

SearchManager $search

void handle( ReadDiscussions $command)

Parameters

ReadDiscussions $command

Return Value

void

protected array narrowingFilters(array $filters)

Parameters

array $filters

Return Value

array