• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

golang-migrate / migrate
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: perf/source-lazy-index-build
DEFAULT BRANCH: master
Repo Added 19 Jan 2018 10:04AM UTC
Files 59
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH perf/source-lazy-index-build
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 607-fix-dockerfile
  • ProxySQL
  • adam-updatespansql
  • add-x-no-lock-to-db-drivers
  • astra
  • aws-sdk-go-v2
  • bugfix/sqlserverLockFix
  • build-go-1.26
  • bump-golang-version
  • bump-spanner
  • chore-context-everywhere
  • chore-redundant-build-tags
  • circleci
  • codex/remove-docker-module-dep
  • cstoneham/use-try-advisory-lock
  • dependabot/go_modules/github.com/aws/aws-sdk-go-1.33.0
  • dependabot/go_modules/github.com/aws/aws-sdk-go-1.34.0
  • dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible
  • dependabot/go_modules/github.com/docker/docker-20.10.24incompatible
  • dependabot/go_modules/github.com/docker/docker-24.0.9incompatible
  • dependabot/go_modules/github.com/docker/docker-28.0.0incompatible
  • dependabot/go_modules/github.com/dvsekhvalnov/jose2go-1.6.0
  • dependabot/go_modules/github.com/dvsekhvalnov/jose2go-1.7.0
  • dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.1
  • dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.2
  • dependabot/go_modules/github.com/jackc/pgx/v4-4.18.2
  • dependabot/go_modules/github.com/jackc/pgx/v5-5.5.4
  • dependabot/go_modules/go_modules-6b971a9d7e
  • dependabot/go_modules/go_modules-9c5197dcb8
  • dependabot/go_modules/go_modules-a138fadfa0
  • dependabot/go_modules/golang.org/x/crypto-0.17.0
  • dependabot/go_modules/golang.org/x/crypto-0.35.0
  • dependabot/go_modules/golang.org/x/crypto-0.45.0
  • dependabot/go_modules/golang.org/x/net-0.23.0
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • dependabot/go_modules/google.golang.org/grpc-1.53.0
  • dependabot/go_modules/google.golang.org/grpc-1.56.3
  • dependabot/go_modules/google.golang.org/grpc-1.64.1
  • dependabot/go_modules/google.golang.org/protobuf-1.33.0
  • dhui--fix-ci
  • dktest_v0.4.6
  • doc/change-apt-key-to-gpg
  • docs/cli-install-toolchain
  • duckdb-support
  • feat--add-ydb-driver
  • feat-opentelemetry-instrumentation
  • feat/hana
  • feat/postgres-use-transaction
  • feat/redact-password
  • feat/remove-hashicorp-multierror
  • feat/slog-structured-logging
  • feat/try-lock-timeout
  • feature/add-couchbase-driver
  • feature/build-constraints
  • feature/bump-autorest
  • feature/spanner-client-enhancements
  • feature/tx-isolation
  • feature/upgrade-mongodb-driver
  • firebird-multistmt
  • fix-1319-support-reading-database-conne-0102-0049
  • fix-1347-support-sslnegotiationdirect-f-0102-0059
  • fix-builds
  • fix-empty-source-error
  • fix-neo4j-tutorial-getting-started-link
  • fix-source-file-driver
  • fix-sqlite-encoded-path
  • fix-typos
  • fix-utf8-bom-migrations
  • fix/aws-s3-list-pagination
  • fix/buffer-propagate-read-error
  • fix/dockerfile-github-actions-alpine
  • fix/err-msg-type
  • fix/go-github-v89
  • fix/mask-password-in-db-url-error
  • fix/postgres-drop-all-objects
  • fix/postgres-host-query-param
  • fix/typos-in-docs-and-comments
  • fix/upgrade-otel-sdk
  • go1.10
  • golangcilintv2
  • jferrl-go-spanner-version
  • jferrl-support-dml
  • libsql
  • linter_issues
  • ljk/no-mongo
  • master
  • migrate-to-moby
  • optimize-spanner
  • oracle
  • patch-1
  • perf/source-lazy-index-build
  • pg-db-dump-truncate-fix
  • post-migrate-exec
  • postgres-lock-fix
  • pr-853-neo4j-v5
  • prika148/add-no-lock-postgres
  • rasviitanen/upgrade-spanner
  • refactor/pkg/errors
  • refs/tags/v4.15.0
  • refs/tags/v4.15.0-beta.2
  • refs/tags/v4.15.0-beta.3
  • refs/tags/v4.15.1
  • refs/tags/v4.15.2
  • refs/tags/v4.16.0
  • refs/tags/v4.16.1
  • refs/tags/v4.16.2
  • refs/tags/v4.17.0
  • refs/tags/v4.17.1
  • refs/tags/v4.18.0
  • refs/tags/v4.18.1
  • refs/tags/v4.18.2
  • refs/tags/v4.18.3
  • refs/tags/v4.19.0
  • refs/tags/v4.19.1
  • release
  • revert-binary-location-change-in-docker-image
  • rm-unused-configs
  • rm_delay
  • safe-migrate
  • source-migration-tests
  • sqlserver/tsql-support
  • storeMigratesInDB
  • support-clickhouse-v2
  • surrealdb
  • tdrpt-7838-reduce-CVEs
  • test-mssql-2025
  • test-postgres-18
  • test-yugabyte-releases
  • tests-cockroachdb-eol
  • tests-fix
  • tl-cassandra-gocql
  • triggers
  • update-gitlab
  • update-snowflake
  • updateGoInBaseImage
  • update_go
  • upgrade-gosnowflake
  • upgrade-pgxv5
  • use-db-name
  • v3.1.0
  • v3.2.0
  • v3.3.0
  • v3.3.1
  • v3.4.0
  • v3.5.0
  • v3.5.1
  • v3.5.2
  • v3.5.3
  • v3.5.4
  • v4.0.0
  • v4.0.1
  • v4.0.2
  • v4.1.0
  • v4.10.0
  • v4.11.0
  • v4.12.0
  • v4.12.1
  • v4.12.2
  • v4.13.0
  • v4.14.0
  • v4.14.1
  • v4.2.0
  • v4.2.1
  • v4.2.2
  • v4.2.3
  • v4.2.4
  • v4.2.5
  • v4.3.0
  • v4.3.1
  • v4.4.0
  • v4.5.0
  • v4.6.0
  • v4.6.1
  • v4.6.2
  • v4.7.0
  • v4.7.1
  • v4.8.0
  • v4.9.0
  • v4.9.1

09 Aug 2026 03:23AM UTC coverage: 54.911% (+0.5%) from 54.412%
31292342710

Pull #1424

github

YuheiTakagawa
perf(source): build migrations index lazily to avoid quadratic startup

Migrations.Append rebuilt and re-sorted the whole index on every call,
making source driver initialization O(n^2 log n) in the number of
migration files. All in-memory source drivers (file, iofs, aws_s3,
github, ...) call Append in a loop at Open/Init time, so startup cost
grew quadratically: 81ms at 1,000 migrations, 2.2s at 5,000 and 11.3s
at 10,000 on an i9-9900K.

Append now only marks the index dirty; the index is rebuilt at most
once, on the first read access (First/Prev/Next). No exported API
changes.

BenchmarkAppend5000 drops from ~2.2s/op to ~2ms/op.
Pull Request #1424: perf(source): build migrations index lazily to avoid quadratic startup

8 of 8 new or added lines in 1 file covered. (100.0%)

4422 of 8053 relevant lines covered (54.91%)

18244.84 hits per line

Relevant lines Covered
Build:
Build:
8053 RELEVANT LINES 4422 COVERED LINES
18244.84 HITS PER LINE
Source Files on master
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31292342710 perf/source-lazy-index-build perf(source): build migrations index lazily to avoid quadratic startup Migrations.Append rebuilt and re-sorted the whole index on every call, making source driver initialization O(n^2 log n) in the number of migration files. All in-memory source ... Pull #1424 09 Aug 2026 03:44AM UTC YuheiTakagawa github
54.91
30983405056 master Add Firebolt database driver Introduce a new database driver for Firebolt (https://www.firebolt.io/), using the official firebolt-go-sdk v1.20.1. The driver implements the full database.Driver contract: version tracking via an append-only migrat... Pull #1379 05 Aug 2026 07:21AM UTC gm42 github
54.7
30982595456 master Add Firebolt database driver Introduce a new database driver for Firebolt (https://www.firebolt.io/), using the official firebolt-go-sdk v1.20.0. The driver implements the full database.Driver contract: version tracking via an append-only migrat... Pull #1379 05 Aug 2026 07:06AM UTC gm42 github
54.7
30975619138 docs/cli-install-toolchain fix(docs): push the versioned, go 1.16+ install via the toolchain higher up in the docs Pull #1419 05 Aug 2026 04:57AM UTC zack6849 github
54.41
30818315875 master test(firebolt): run Core without io_uring Use the master-built engine image and its explicit no-io_uring mode so integration tests can run under GitHub Actions' default Docker security profile. Co-authored-by: Cursor <cursoragent@cursor.com> Pull #1379 03 Aug 2026 01:52PM UTC gm42 github
54.7
30688063266 fix-utf8-bom-migrations fix: strip UTF-8 BOM from migrations Pull #1418 01 Aug 2026 06:56AM UTC Sushanth012 github
54.42
30631577385 fix/buffer-propagate-read-error fix: propagate migration body read errors to the database driver Migration.Buffer closes bufferWriter in a deferred call so that readers of BufferedBody can never block (#1308). Because io.PipeWriter.Close closes with a nil error, the reader obse... Pull #1417 31 Jul 2026 01:02PM UTC milanobrtlik github
54.47
30372740899 master fix comments Pull #1416 28 Jul 2026 03:39PM UTC sidju github
54.52
30368805553 master chore: cleanup refactor of PR Pull #1416 28 Jul 2026 02:51PM UTC sidju github
54.48
30364373717 master Trim splitter function and remove URL wording Reduce splitMigrationSteps to a small wrapper (<=10 lines) by delegating line-based logic to a helper. Remove the 'no URL modification required' wording from the Postgres migration-splitter docs. Co-... Pull #1416 28 Jul 2026 01:56PM UTC sidju github
54.62
See All Builds (1721)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc