million

command
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 6 Imported by: 0

README

Ten Million Rows

This example adds 10 million rows to a collection, runs and measures a few different queries and transaction around it.

Example output

running insert of 10000000 rows...
-> insert took 7.6464726s

running snapshot of 10000000 rows...
-> snapshot took 1.35868707s

running full scan of age >= 30...
-> result = 5100000
-> full scan took 27.011615ms

running full scan of class == "rogue"...
-> result = 3580000
-> full scan took 45.053185ms

running indexed query of human mages...
-> result = 680000
-> indexed query took 309.74µs

running indexed query of human female mages...
-> result = 320000
-> indexed query took 385.606µs

running update of balance of everyone...
-> updated 10000000 rows
-> update took 108.09756ms

running update of age of mages...
-> updated 3020000 rows
-> update took 41.731165ms

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL