public function execute()
    {
        $events = $this->eventQueue->getEvents($this->chunkSize);
        if (!empty($events)) {
            $this->eventIndex->indexEvents($events);
            $this->sessionIndex->indexEvents($events);
            $this->eventQueue->deleteEvents(array_column($events, 'event_id'));
        }
    }
public function execute()
    {
        $events = $this->eventQueue->getEvents($this->chunkSize);
        if (!empty($events)) {
            $this->eventIndex->indexEvents($events);
            $this->sessionIndex->indexEvents($events);
            $this->eventQueue->deleteEvents(array_column($events, 'event_id'));
        }
    }
public function execute ( ) { $ events = $ this -> eventQueue -> getEvents ( $ this -> chunkSize ) ; if ( ! empty ( $ events ) ) { $ this -> eventIndex -> indexEvents ( $ events ) ; $ this -> sessionIndex -> indexEvents ( $ events ) ; $ this -> eventQueue -> deleteEvents ( array_column ( $ events , 'event_id' ) ) ; } }
Run the indexation.

@return void
Run the indexation .