MCPcopy Index your code
hub / github.com/questdb/questdb / setupMatViewJobs

Method setupMatViewJobs

core/src/main/java/io/questdb/ServerMain.java:537–546  ·  view source on GitHub ↗
(WorkerPool mvWorkerPool, CairoEngine engine, int sharedQueryWorkerCount)

Source from the content-addressed store, hash-verified

535 }
536
537 protected void setupMatViewJobs(WorkerPool mvWorkerPool, CairoEngine engine, int sharedQueryWorkerCount) {
538 for (int i = 0, workerCount = mvWorkerPool.getWorkerCount(); i < workerCount; i++) {
539 // create job per worker
540 final MatViewRefreshJob matViewRefreshJob = new MatViewRefreshJob(i, engine, sharedQueryWorkerCount);
541 mvWorkerPool.assign(i, matViewRefreshJob);
542 mvWorkerPool.freeOnExit(matViewRefreshJob);
543 }
544 final MatViewTimerJob matViewTimerJob = new MatViewTimerJob(engine);
545 mvWorkerPool.assign(matViewTimerJob);
546 }
547
548 protected void setupViewJobs(WorkerPool vWorkerPool, CairoEngine engine, int sharedQueryWorkerCount) {
549 for (int i = 0, workerCount = vWorkerPool.getWorkerCount(); i < workerCount; i++) {

Callers 1

setupDedicatedPoolsMethod · 0.95

Calls 3

getWorkerCountMethod · 0.65
assignMethod · 0.45
freeOnExitMethod · 0.45

Tested by

no test coverage detected