aboutsummaryrefslogtreecommitdiff
path: root/cmd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Normalize structure following other projectsEuAndreh2024-10-262-2096/+0
|
* hexidecimal -> hexadecimalSebastian2017-01-281-3/+3
| | | Small spelling fix :)
* Merge pull request #561 from zhujun2006/masterBen Johnson2016-09-061-2/+2
|\ | | | | task#560 print leaf k/v with right value
| * task#560 print leaf k/v with right valuestone13420062016-05-181-2/+2
| |
* | Minor bolt compact revisionsBen Johnson2016-09-052-113/+132
| |
* | Merge branch 'compact-db' of https://github.com/vincent-petithory/bolt into ↵Ben Johnson2016-09-012-0/+360
|\ \ | |/ |/| | | vincent-petithory-compact-db
| * compact: allow splitting transactions for large datasetsVincent Petithory2015-11-191-18/+45
| |
| * cli: add compact commandVincent Petithory2015-11-192-0/+333
| | | | | | | | | | compact rewrites a bolt db, recursively walking its keys in byte order.
* | Fix `bolt stats` outputRodolfo Carvalho2015-12-052-1/+44
|/
* Fix invalid fmt.Fprintln/Errorf callsArtyom Pervukhin2015-08-111-3/+3
| | | | | `go vet` discovered two calls of Fprintln with trailing newline and one Errorf call without proper format string.
* cmd/bolt: remove duplicate blockProfile flagXiang Li2015-04-221-1/+0
|
* Add 'bolt page' command.Ben Johnson2015-04-171-7/+466
|
* Add 'bolt dump' command.Ben Johnson2015-04-161-0/+117
|
* Add improved CLI documentation.Ben Johnson2015-04-151-4/+123
|
* Refactor bolt CLI.Ben Johnson2015-04-1415-1173/+914
|
* Add --path to bolt bench.Ben Johnson2015-04-122-2/+8
|
* new line after page size info printBaiju Muthukadan2015-02-281-1/+1
|
* Remove 'import' and 'export' CLI commands.Ben Johnson2015-01-085-322/+0
| | | | | | | | | | | The import and export commands are a relic of early Bolt when the file format was not stable. If the file format changed then users could export their old data and import it into a new database with a new format. The Bolt DB file format is stable and will not change so this command is no longer needed. Thanks to Alejandro Gaviria for pointing this out.
* Fix go vet.Ben Johnson2014-07-262-4/+4
|
* Remove testify.Ben Johnson2014-07-268-35/+58
|
* Change fill percent to be per-bucket.Ben Johnson2014-07-241-1/+3
| | | | | | This commit moves the DB.FillPercent field to Bucket.FillPercent. This allows the fill percentage to be specified per-bucket, per-tx. This value is not persisted and should be set whenever using it.
* Add DB.NoSync option for bulk loading.Ben Johnson2014-07-152-0/+4
| | | | | | | This commit adds the DB.NoSync flag to skip fsync() calls on each commit. This should only be used for bulk loading as it can corrupt your database in the event of a system failure. Initial tests show it can provide a 2x speed up for sequential inserts.
* Add Open() options, flock timeout.Ben Johnson2014-06-2112-12/+12
| | | | | | | | This commit changes Open() to provide an additional Options argument. The options argument currently only has a Timeout which will cause the Open() to return ErrTimeout if a file lock cannot be obtained in time. Fixes #207.
* Optimize Tx.Check().Ben Johnson2014-05-282-1/+3
| | | | This commit removes several memory allocations occurring on every page and also caches the freelist map used when iterating over the pages. This results in significantly better performance.
* Add streaming check.Ben Johnson2014-05-281-12/+20
| | | | | This commit changes Tx.Check() to return a channel through which check errors are returned. This allows errors to be found before checking the entire data file.
* Remove DB.Check(). Allow read-only Tx.Check().Ben Johnson2014-05-271-1/+6
| | | | | | | This commit removes the DB.Check() function and instead makes the user decide whether a transaction should be writable or read-only. Tx.Check() is not safe to use concurrently on a read-only transaction, however, it significantly improves the performance of it.
* Remove allocations from read-only buckets.Ben Johnson2014-05-231-1/+82
|
* Add option to adjust fill percentage.Ben Johnson2014-05-152-0/+5
| | | | | | | | | | This commit adds the ability to adjust the fill percentage for splitting nodes. This works by setting a threshold that is a percentage of a total page size. When that threshold is crossed during a split then a new node is created. This is primarily beneficial for append-only workloads. Fixes #163.
* Merge pull request #162 from Shopify/nested_stats2Ben Johnson2014-05-143-0/+147
|\ | | | | Recursive/aggregate bucket stats
| * address review commentsMartin Kobetic2014-05-132-13/+47
| |
| * add inline stats to cmdMartin Kobetic2014-05-121-0/+8
| |
| * aggregate bucket stats recursively and add stats to cmdMartin Kobetic2014-05-093-12/+55
| |
| * first partMartin Kobetic2014-05-092-0/+62
| |
* | Add -work flag to 'bolt bench'.Ben Johnson2014-05-122-1/+9
|/ | | | | This commit adds a 'work' flag to the bolt bench utility so that databases generated by the bench CLI can be saved for analysis.
* Add 'bolt info'.Ben Johnson2014-05-083-0/+66
|
* Remove 'bolt set'.Ben Johnson2014-05-053-87/+0
| | | | | This commit removes the 'set' command in the Bolt CLI. It proved to not be very useful so there's no point in keeping the extra code around.
* Add streaming stats to bolt bench.Ben Johnson2014-04-302-23/+61
| | | | | | This commit adds -stats-interval to the 'bolt bench' utility. By setting this argument to an interval greater than 0s, the benchmark tool will output stats as streaming JSON. This data can, in turn, be graphed to understand performance over time.
* Merge branch 'bench-batch' into moar_benchBen Johnson2014-04-302-7/+10
|\ | | | | | | | | Conflicts: cmd/bolt/bench.go
| * Add --batch-size to 'bolt bench'.Ben Johnson2014-04-292-11/+33
| | | | | | | | | | | | | | | | This commit adds a --batch-size CLI argument to the 'bolt bench' tool. This argument will insert into Bolt in smaller batches which is a more typical use case. /cc @snormore
* | Remove bolt bench -stat.Ben Johnson2014-04-302-26/+1
| |
* | add -stats and -batch-size support to bench cmdMartin Kobetic2014-04-242-12/+63
|/
* Add 'bolt bench'.Ben Johnson2014-04-186-249/+279
| | | | | | | | | | | | | | This commit adds a flexible benchmarking tool to the 'bolt' CLI. It allows the user to separately specify the write mode and read mode (e.g. sequential random, etc). It also allows the user to isolate profiling to either the read or the writes. Currently the bench tool only supports "seq" read and write modes. It also does not support streaming of Bolt counters yet. Fixes #95. /cc @snormore
* move bench package to bench/cmd/bolt/benchSteven Normore2014-04-183-0/+157
|
* add bench sub-packageSteven Normore2014-04-181-28/+8
|
* add benchmarks using Benchmark frameworkSteven Normore2014-04-186-51/+68
|
* moar bench packageSteven Normore2014-04-185-46/+70
|
* initial bench and generate command structureSteven Normore2014-04-184-0/+96
|
* Return bucket from CreateBucket() functions.Ben Johnson2014-04-152-5/+6
| | | | | | | | | | | This commit changes the API for: Tx.CreateBucket() Tx.CreateBucketIfNotExists() Bucket.CreateBucket() Bucket.CreateBucketIfNotExists() These functions now return the *Bucket and error instead of just the error.
* Upgrade import/export to use nested buckets.Ben Johnson2014-04-118-27/+78
|
* Merge branch 'master' into nested-keysBen Johnson2014-04-1110-25/+309
|\ | | | | | | | | | | Conflicts: db_test.go tx_test.go