Skip to content

Commit

Permalink
chore: change batch sizes for migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Dec 9, 2024
1 parent 6e28ccf commit a3fdd5c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
do $$
declare
_batch_size integer := 100;
_batch_size integer := 1000;
_max integer;
begin
set search_path = '{{.Schema}}';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
do $$
declare
_batch_size integer := 100;
_batch_size integer := 1000;
_date timestamp without time zone;
_count integer := 0;
begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
do $$
declare
_count integer;
_batch_size integer := 100;
_batch_size integer := 1000;
begin
set search_path = '{{.Schema}}';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

do $$
declare
_batch_size integer := 100;
_batch_size integer := 1000;
_count integer;
begin
set search_path = '{{.Schema}}';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

do $$
declare
_batch_size integer := 100;
_batch_size integer := 1000;
_count integer;
begin
set search_path = '{{.Schema}}';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
do $$
declare
_batch_size integer := 100;
_batch_size integer := 1000;
_count integer;
begin
set search_path = '{{.Schema}}';
Expand Down
1 change: 1 addition & 0 deletions internal/storage/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (d *Driver) CreateLedger(ctx context.Context, l *ledger.Ledger) (*ledgersto
}

func (d *Driver) OpenLedger(ctx context.Context, name string) (*ledgerstore.Store, *ledger.Ledger, error) {
// todo: keep the ledger in cache somewhere to avoid read the ledger at each request, maybe in the factory
ret, err := d.systemStore.GetLedger(ctx, name)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit a3fdd5c

Please sign in to comment.