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

dgraph-io / badger / 1937 / 4
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 03 May 2019 02:58PM UTC
Files 31
Run time 5s
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

03 May 2019 02:49PM UTC coverage: 79.212% (+0.006%) from 79.206%
1937.4

push

travis-ci

manishrjain
Make getting key count optional in db.Tables() (#796)

Currently db.Tables() returns list of TableInfo objects. These objects
also contain keys count for the tables. Getting keys count for tables
can be expensive as it requires iterating all the tables, espcially in
large databases. db.KeySplits function(used for steaming) also uses the
same function, which does not require keys count for tables. Hence
in case of large databases, stream can take lot of time just for getting
key splits. This commit adds support for getting keys count optionally
in TableInfo objects.

I compared time for KeySplits() in with and without keys count case.
Environment:
* Ubuntu 18.10 system with 16 core, 32 GB RAM and SSD storage
* Created DB using fill command containing 500M records and 473 SSTs

I tried to create stream on DB created above (stream internally uses
db.KeySplits()). Time taken by db.KeySplits():
with keys count: 49 sec
without keys count: ~500 microsec

5129 of 6475 relevant lines covered (79.21%)

565634.86 hits per line

Source Files on job 1937.4
  • Tree
  • List 0
  • Changed 16
  • Source Changed 2
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1783
  • Travis Job 1937.4
  • 76b5341c on github
  • Prev Job for on master (#1930.1)
  • Next Job for on master (#1940.4)
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