MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / chunks

Method chunks

packages/db/src/buffers/base-buffer.ts:190–196  ·  view source on GitHub ↗
(items: T[], size: number)

Source from the content-addressed store, hash-verified

188 }
189
190 protected chunks<T>(items: T[], size: number) {
191 const chunks = [];
192 for (let i = 0; i < items.length; i += size) {
193 chunks.push(items.slice(i, i + size));
194 }
195 return chunks;
196 }
197
198 /**
199 * Max number of ch.insert sub-chunks that a single flush may run in

Callers 7

processBufferMethod · 0.80
processBufferMethod · 0.80
processBufferMethod · 0.80
fetchGroupMethod · 0.80
processBufferMethod · 0.80
processBufferMethod · 0.80
processBufferMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected