Commit Graph

151 Commits

Author SHA1 Message Date
tidwall d4c361c59c Use btree with non-concurrent mode
Minor optimization
2021-07-31 07:36:38 -07:00
Josh Baker 89544ad8fc
Update README.md 2021-06-17 07:42:00 -07:00
tidwall e49c1a2edd Updated dependencies 2021-06-17 07:33:29 -07:00
tidwall b1acd463ca Minimize new allocations
This commit makes the insert method reuse a variable to minimize
new allocations.
2021-06-17 07:27:04 -07:00
Josh Baker 9723e071ad
Merge pull request #75 from webscale-networks/index-overused
Index pattern not always honored
2021-06-17 07:12:27 -07:00
Mike Haller 97feb53ded Index pattern not always honored
When creating an index with CreateIndex, a pattern is used to specify
the matching keys that should be stored in the index. It is therefore
unexpected that items that do not match the pattern will be presented to
the less function that is also supplied on CreateIndex.  This change
corrects that problem by applying the pattern in two paths previously
not considered:

1. When an item is replaced in the database.
2. When an item is deleted from the database.
2021-06-15 17:26:56 -06:00
Josh Baker ae2bcacb06
Update README.md 2021-05-09 17:20:25 -07:00
Josh Baker ee8f673bde
Update README.md 2021-05-09 16:54:50 -07:00
tidwall b6a74904ab Fixes issue where a partial write can corrupt the database 2021-04-01 10:23:25 -07:00
tidwall a41516f180 Fix reload calculation incorrect 2021-03-30 15:36:40 -07:00
tidwall d7ed6a747a Ignore incomplete tail commands and allow for null padding
This commit allows for BuntDB to load data files that were
previously considered invalid or corrupted.

Now when the data file ends with an incomplete command, the data
will be truncated at the end of the previously success command.
Also when a null control character is encountered instead of an
asterix, which indicates the start of a command, the null is
ignored and the cursor moves to the next byte. This allows for
null padding at the head and the tail.

Fixes #71
https://github.com/tidwall/tile38/issues/600
2021-03-29 14:06:22 -07:00
tidwall 4f7ef48197 Upgrade gjson 2021-03-29 14:03:54 -07:00
Josh Baker bc1ef3e3d6
Create FUNDING.yml 2021-03-28 09:01:09 -07:00
tidwall 62d43edfcf Updated rtree dependency 2021-02-07 17:51:10 -07:00
tidwall ca8c0ff5d5 Upgraded dependencies 2021-02-07 17:04:06 -07:00
tidwall c3544a778b Updated Go packages 2021-01-25 14:57:28 -07:00
Josh Baker 001aac9135
Update README.md 2021-01-10 15:57:47 -07:00
Josh Baker 10fbc48357
Update README.md 2021-01-10 15:56:43 -07:00
Josh Baker 4aa8fb12ec
Update README.md 2021-01-10 15:56:13 -07:00
Josh Baker 00c1a6ac45
Update README.md 2021-01-10 15:53:48 -07:00
Josh Baker 7b16b21ea7
Update README.md 2021-01-10 15:45:21 -07:00
tidwall 13599ea482 Added test 2021-01-10 06:54:16 -07:00
Josh Baker dcbe694f9e
Merge pull request #70 from Sora233/master
fix set transaction leak
2021-01-10 06:42:52 -07:00
sora233 6363a756c0 fix set transaction leak 2021-01-10 21:36:17 +08:00
tidwall 8724f51bb5 Update dependencies 2021-01-06 10:50:41 -07:00
tidwall 07278140d9 Fixed expires out of range
This commit fixes an issue where persisting a value with a
negative expires to the AOF causes the database to not load.

fixes #68
2020-12-10 08:54:47 -07:00
Josh Baker 18423895fc
Create go.yml 2020-11-03 10:55:38 -07:00
Josh Baker d47e0a0e7d
Delete .travis.yml 2020-11-03 10:55:27 -07:00
Josh Baker 127e283d3f
Update README.md 2020-11-03 10:55:11 -07:00
tidwall 0b1a2df5f8 Updated dependencies 2020-10-27 08:55:29 -07:00
tidwall df8cd8d232 Updated Btree implementation 2020-10-27 05:44:48 -07:00
tidwall ba891d68e3 Updated Go version 2020-10-27 05:03:22 -07:00
tidwall 14666ffbfc Fix go test output 2020-10-26 16:32:22 -07:00
Josh Baker f413da4ba3
Merge pull request #60 from xmikus01/fix-typos
Fix typos
2020-01-27 08:14:42 -07:00
Petr Mikusek 3c8dd9070b Fix typos 2020-01-26 18:50:22 +01:00
Josh Baker 5a505994ed
Merge pull request #51 from alesvaupotic/master
WriteConfig should be SetConfig
2019-11-15 13:39:57 -07:00
tidwall eeb4b0a11d Remove deprecated warning 2019-11-15 13:27:37 -07:00
tidwall e1e78e6e9f Added Go modules 2019-11-15 13:04:12 -07:00
Aleš Vaupotič 055b17e34e
Merge pull request #1 from alesvaupotic/alesvaupotic-patch-setconfig
WriteConfig should be SetConfig
2019-10-01 19:39:49 +02:00
Aleš Vaupotič 1406b6a193
WriteConfig should be SetConfig
The leading text suggests use of SetConfig but code contains WriteConfig
2019-10-01 19:39:20 +02:00
Josh Baker 6249481c29
Update README.md 2018-05-03 09:43:07 -07:00
Josh Baker 847243a6cf
Fix code formatting 2018-05-03 09:42:12 -07:00
Josh Baker 75d89283d5 Added comment about Nearby dist param
closes #31
2018-04-30 04:50:00 -07:00
Josh Baker 6c62c87570
Update README.md 2018-04-30 04:40:01 -07:00
Josh Baker 5ea07edd0a Merge branch 'master' of https://github.com/quackingduck/buntdb into quackingduck-master 2018-04-30 04:27:06 -07:00
Josh Baker cd4f5a9b05 Merge branch 'dc0d-onexpiredsync-01' 2018-03-15 17:57:49 -07:00
dc0d 9962a94df0 adding OnExpiredSync callback 2018-03-04 12:00:42 +03:30
Josh Baker 2da7c10668
Update README.md 2018-01-12 16:41:09 -07:00
Josh Baker 0a064e7588 Nearby operation (kNN) 2018-01-12 16:38:11 -07:00
Myles Byrne e8211f89e6 Make indentation consistent 2017-11-28 12:07:28 -08:00