@@ -94,6 +94,11 @@ type Config struct {
94
94
// enables filtering out any transactional writes with that flag set to true.
95
95
WithFiltering bool
96
96
97
+ // WithBulkDelivery is propagated via the RangefeedRequest to the rangefeed
98
+ // server, where if true, the server will deliver rangefeed events in bulk
99
+ // during catchup scans.
100
+ WithBulkDelivery bool
101
+
97
102
// WithFrontierQuantize specifies the resolved timestamp quantization
98
103
// granularity. If non-zero, resolved timestamps from rangefeed checkpoint
99
104
// events will be rounded down to the nearest multiple of the quantization
@@ -135,7 +140,7 @@ func Run(ctx context.Context, cfg Config) error {
135
140
f := newKVFeed (
136
141
cfg .Writer , cfg .Spans ,
137
142
cfg .SchemaChangeEvents , cfg .SchemaChangePolicy ,
138
- cfg .NeedsInitialScan , cfg .WithDiff , cfg .WithFiltering ,
143
+ cfg .NeedsInitialScan , cfg .WithDiff , cfg .WithFiltering , cfg . WithBulkDelivery ,
139
144
cfg .WithFrontierQuantize ,
140
145
cfg .ConsumerID ,
141
146
cfg .InitialHighWater , cfg .InitialSpanTimePairs , cfg .EndTime ,
@@ -260,6 +265,7 @@ type kvFeed struct {
260
265
withDiff bool
261
266
withFiltering bool
262
267
withInitialBackfill bool
268
+ withBulkDelivery bool
263
269
consumerID int64
264
270
initialHighWater hlc.Timestamp
265
271
initialSpanTimePairs []kvcoord.SpanTimePair
@@ -289,7 +295,7 @@ func newKVFeed(
289
295
spans []roachpb.Span ,
290
296
schemaChangeEvents changefeedbase.SchemaChangeEventClass ,
291
297
schemaChangePolicy changefeedbase.SchemaChangePolicy ,
292
- withInitialBackfill , withDiff , withFiltering bool ,
298
+ withInitialBackfill , withDiff , withFiltering , withBulkDelivery bool ,
293
299
withFrontierQuantize time.Duration ,
294
300
consumerID int64 ,
295
301
initialHighWater hlc.Timestamp ,
@@ -312,6 +318,7 @@ func newKVFeed(
312
318
withDiff : withDiff ,
313
319
withFiltering : withFiltering ,
314
320
withFrontierQuantize : withFrontierQuantize ,
321
+ withBulkDelivery : withBulkDelivery ,
315
322
consumerID : consumerID ,
316
323
initialHighWater : initialHighWater ,
317
324
endTime : endTime ,
@@ -615,6 +622,7 @@ func (f *kvFeed) runUntilTableEvent(ctx context.Context, resumeFrontier span.Fro
615
622
WithDiff : f .withDiff ,
616
623
WithFiltering : f .withFiltering ,
617
624
WithFrontierQuantize : f .withFrontierQuantize ,
625
+ WithBulkDelivery : f .withBulkDelivery ,
618
626
ConsumerID : f .consumerID ,
619
627
Knobs : f .knobs ,
620
628
Timers : f .timers ,
0 commit comments