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

Method warmUp

core/src/main/java/io/questdb/cairo/TableWriter.java:3512–3521  ·  view source on GitHub ↗

Eagerly sets up writer instance. Otherwise, the writer will initialize lazily. Invoking this method could improve the performance of some applications. UDP receivers use this in order to avoid initial receive buffer contention.

()

Source from the content-addressed store, hash-verified

3510 * the performance of some applications. UDP receivers use this in order to avoid initial receive buffer contention.
3511 */
3512 public void warmUp() {
3513 Row r = newRow(Math.max(TIMESTAMP_EPOCH, txWriter.getMaxTimestamp()));
3514 try {
3515 for (int i = 0; i < columnCount; i++) {
3516 r.putByte(i, (byte) 0);
3517 }
3518 } finally {
3519 r.cancel();
3520 }
3521 }
3522
3523 private static void clearMemColumnShifts(ObjList<MemoryCARW> memColumns) {
3524 for (int i = 0, n = memColumns.size(); i < n; i++) {

Callers 3

assertReceiveMethod · 0.80
testRemoveColumnMethod · 0.80
testRenameColumnMethod · 0.80

Calls 4

newRowMethod · 0.95
putByteMethod · 0.95
cancelMethod · 0.95
getMaxTimestampMethod · 0.45

Tested by 3

assertReceiveMethod · 0.64
testRemoveColumnMethod · 0.64
testRenameColumnMethod · 0.64