Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions integrations/supabase/connector-performance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,19 @@ The two batching strategies that will be implemented are:
const MERGE_BATCH_LIMIT = 100;
let batchedOps: CrudEntry[] = [];
```
- Pre-sorts all operations by type and table
- Processes each type in bulk after grouping
- Processes operations sequentially
- Merges consecutive operations of the same type up to a batch limit
- More dynamic/streaming approach

### Pre-sorted batch strategy
```typescript
const putOps: { [table: string]: any[] } = {};
const deleteOps: { [table: string]: string[] } = {};
let patchOps: CrudEntry[] = [];
```
- Processes operations sequentially
- Merges consecutive operations of the same type up to a batch limit
- More dynamic/streaming approach
- Pre-sorts all operations by type and table
- Processes each type in bulk after grouping

</Accordion>
<Accordion title="Batching methodology">
### Sequential merge strategy
Expand Down Expand Up @@ -292,4 +293,4 @@ The two batching strategies that will be implemented are:
<br />
**Trade-off**: Higher memory usage
</Card>
</CardGroup>
</CardGroup>