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

dgraph-io / badger / 3381 / 2
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 28 Nov 2019 05:31PM UTC
Files 41
Run time 3s
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

28 Nov 2019 05:19PM UTC coverage: 77.571% (+0.2%) from 77.408%
3381.2

push

travis-ci

web-flow
Optimize createTable in stream_writer.go (#1132)

In createTable method of StreamWriter we are calling levelHandler.replaceTables method. This method adds table to leveHandler tables and sorts table based on table.Smallest. This sorting is required if we are adding tables and also querying Badger. In StreamWriter we just write data and hence we can avoid sorting on every addition of table. After we are done adding all tables, we can sort tables on all levels based on table.Smallest.
This creates huge difference in case of large number of streams. I tested it on 100,000 streams
time, to completely run stream writer on master was ~38 minutes vs ~6 minuntes on this PR.

6661 of 8587 relevant lines covered (77.57%)

77648.02 hits per line

Source Files on job 3381.2
  • Tree
  • List 0
  • Changed 21
  • Source Changed 2
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2877
  • Travis Job 3381.2
  • 407e5bde on github
  • Prev Job for on master (#3365.1)
  • Next Job for on master (#3395.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc