toeverything / OctoBase

🐙 OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.
https://octobase.dev
GNU Affero General Public License v3.0
1.32k stars 83 forks source link

feat: init workspace & delete history #548

Closed darkskygit closed 11 months ago

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
octobase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 3:52am
codecov[bot] commented 11 months ago

Codecov Report

Attention: 42 lines in your changes are missing coverage. Please review.

Comparison is base (614eca0) 65.63% compared to head (62e8d89) 65.82%.

:exclamation: Current head 62e8d89 differs from pull request most recent head c282fcd. Consider uploading reports for the commit c282fcd to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #548 +/- ## ========================================== + Coverage 65.63% 65.82% +0.18% ========================================== Files 117 117 Lines 12746 12938 +192 ========================================== + Hits 8366 8516 +150 - Misses 4380 4422 +42 ``` | [Files](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [libs/jwst-binding/jwst-swift/src/lib.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvbGliLnJz) | `0.00% <ø> (ø)` | | | [libs/jwst-codec/src/doc/history.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvaGlzdG9yeS5ycw==) | `91.62% <100.00%> (+2.15%)` | :arrow_up: | | [libs/jwst-codec/src/doc/common/range.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvY29tbW9uL3JhbmdlLnJz) | `93.98% <98.98%> (+2.28%)` | :arrow_up: | | [libs/jwst-codec/src/doc/publisher.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvcHVibGlzaGVyLnJz) | `88.52% <66.66%> (-2.07%)` | :arrow_down: | | [libs/jwst-binding/jwst-jni/src/storage.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1qbmkvc3JjL3N0b3JhZ2UucnM=) | `0.00% <0.00%> (ø)` | | | [libs/jwst-binding/jwst-swift/src/storage.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/548?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvc3RvcmFnZS5ycw==) | `0.00% <0.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 11 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 396.5±22.12µs | 404.8±12.46µs | +2.09% | | codec/jwst decode var_uint (32 bit) | 352.9±15.47µs | 354.0±10.76µs | +0.31% | | codec/jwst decode var_uint (64 bit) | 351.8±12.48µs | 352.3±8.54µs | +0.14% | | codec/jwst encode var_int (32 bit) | 524.3±22.22µs | 523.0±22.20µs | -0.25% | | codec/jwst encode var_uint (32 bit) | 345.5±11.46µs | 345.7±13.86µs | +0.06% | | codec/jwst encode var_uint (64 bit) | 346.4±12.47µs | 342.9±15.89µs | -1.01% | | codec/lib0 decode var_int (64 bit) | 359.9±8.21µs | 351.7±18.37µs | **-2.28%** | | codec/lib0 decode var_uint (32 bit) | 304.0±20.69µs | 334.2±15.52µs | **+9.93%** | | codec/lib0 decode var_uint (64 bit) | 311.9±11.55µs | 306.6±13.00µs | -1.70% | | codec/lib0 encode var_int (64 bit) | 509.3±17.57µs | 512.1±18.37µs | +0.55% | | codec/lib0 encode var_uint (32 bit) | 349.0±14.92µs | 341.5±15.67µs | -2.15% | | codec/lib0 encode var_uint (64 bit) | 345.0±12.06µs | 339.7±14.42µs | -1.54% | | ops/array/jwst/insert | 327.1±15.47µs | 318.6±11.02µs | -2.60% | | ops/array/jwst/insert range | 446.8±15.52µs | 467.6±21.46µs | **+4.66%** | | ops/array/jwst/remove | 198.6±6.44µs | 197.9±13.13µs | -0.35% | | ops/array/yrs/insert | 97.4±4.27µs | 93.3±3.52µs | **-4.21%** | | ops/array/yrs/insert range | 131.6±4.94µs | 132.4±6.31µs | +0.61% | | ops/array/yrs/remove | 128.4±3.28µs | 123.6±3.41µs | **-3.74%** | | ops/map/jwst/get | 583.3±13.01ns | 544.7±19.10ns | **-6.62%** | | ops/map/jwst/insert | 7.2±0.24µs | 7.0±0.27µs | **-2.78%** | | ops/map/jwst/remove | 9.0±0.34µs | 9.0±0.27µs | -0.00% | | ops/map/yrs/get | 411.2±11.74ns | 402.6±14.31ns | -2.09% | | ops/map/yrs/insert | 5.8±0.20µs | 6.1±0.19µs | **+5.17%** | | ops/map/yrs/remove | 8.4±0.22µs | 8.1±0.15µs | **-3.57%** | | ops/text/jwst/insert | 165.7±4.72µs | 167.1±5.41µs | +0.84% | | ops/text/jwst/remove | 4.1±0.10µs | 4.0±0.15µs | **-2.44%** | | ops/text/yrs/insert | 47.0±1.65µs | 45.9±1.30µs | **-2.34%** | | ops/text/yrs/remove | 2.8±0.07µs | 2.8±0.10µs | -0.00% | | update/parse with jwst/basic.bin | 73.3±3.02µs | 72.7±3.08µs | -0.82% | | update/parse with jwst/database.bin | 49.7±1.35µs | 49.2±1.36µs | -1.01% | | update/parse with jwst/large.bin | 3.9±0.09ms | 3.7±0.13ms | **-5.13%** | | update/parse with jwst/with-subdoc.bin | 10.0±0.32µs | 9.1±0.36µs | **-9.00%** | | update/parse with yrs/basic.bin | 57.0±1.37µs | 55.0±2.06µs | **-3.51%** | | update/parse with yrs/database.bin | 34.4±1.58µs | 35.3±1.26µs | +2.62% | | update/parse with yrs/large.bin | 2.8±0.08ms | 2.8±0.10ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 7.1±0.20µs | 8.2±0.37µs | **+15.49%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 418.8±21.02µs | 461.2±19.26µs | **+10.12%** | | codec/jwst decode var_uint (32 bit) | 409.9±18.53µs | 382.2±21.27µs | **-6.76%** | | codec/jwst decode var_uint (64 bit) | 378.9±20.76µs | 373.2±14.62µs | -1.50% | | codec/jwst encode var_int (32 bit) | 501.1±33.08µs | 519.7±31.08µs | +3.71% | | codec/jwst encode var_uint (32 bit) | 416.3±37.60µs | 422.0±38.49µs | +1.37% | | codec/jwst encode var_uint (64 bit) | 400.0±30.00µs | 399.0±39.04µs | -0.25% | | codec/lib0 decode var_int (64 bit) | 320.8±14.63µs | 345.5±15.55µs | **+7.70%** | | codec/lib0 decode var_uint (32 bit) | 291.3±20.87µs | 274.0±14.74µs | **-5.94%** | | codec/lib0 decode var_uint (64 bit) | 271.7±11.89µs | 271.2±13.03µs | -0.18% | | codec/lib0 encode var_int (64 bit) | 505.1±37.33µs | 549.1±35.78µs | **+8.71%** | | codec/lib0 encode var_uint (32 bit) | 357.0±27.08µs | 318.6±19.02µs | **-10.76%** | | codec/lib0 encode var_uint (64 bit) | 542.4±33.88µs | 484.4±28.16µs | **-10.69%** | | ops/array/jwst/insert | 309.3±11.53µs | 310.8±11.38µs | +0.48% | | ops/array/jwst/insert range | 438.7±24.57µs | 463.6±22.20µs | **+5.68%** | | ops/array/jwst/remove | 192.9±13.60µs | 184.7±13.82µs | -4.25% | | ops/array/yrs/insert | 125.0±8.86µs | 118.9±7.02µs | -4.88% | | ops/array/yrs/insert range | 166.1±10.72µs | 169.4±12.81µs | +1.99% | | ops/array/yrs/remove | 167.7±10.97µs | 193.1±52.27µs | **+15.15%** | | ops/map/jwst/get | 567.6±38.13ns | 559.8±42.19ns | -1.37% | | ops/map/jwst/insert | 10.6±0.69µs | 11.4±0.90µs | **+7.55%** | | ops/map/jwst/remove | 10.9±0.74µs | 11.5±0.90µs | **+5.50%** | | ops/map/yrs/get | 421.7±30.22ns | 412.3±28.47ns | -2.23% | | ops/map/yrs/insert | 9.2±0.81µs | 9.2±0.65µs | -0.00% | | ops/map/yrs/remove | 12.4±0.89µs | 12.0±0.79µs | **-3.23%** | | ops/text/jwst/insert | 200.9±16.01µs | 191.7±15.96µs | -4.58% | | ops/text/jwst/remove | 4.9±0.26µs | 4.5±0.31µs | **-8.16%** | | ops/text/yrs/insert | 59.5±3.02µs | 58.1±3.99µs | -2.35% | | ops/text/yrs/remove | 4.5±0.27µs | 4.3±0.30µs | **-4.44%** | | update/parse with jwst/basic.bin | 107.7±5.69µs | 91.6±6.31µs | **-14.95%** | | update/parse with jwst/database.bin | 85.1±4.66µs | 74.2±5.11µs | **-12.81%** | | update/parse with jwst/large.bin | 5.3±0.38ms | 4.5±0.28ms | **-15.09%** | | update/parse with jwst/with-subdoc.bin | 16.0±0.59µs | 13.0±0.96µs | **-18.75%** | | update/parse with yrs/basic.bin | 79.5±2.79µs | 82.2±4.32µs | **+3.40%** | | update/parse with yrs/database.bin | 60.7±3.35µs | 60.7±3.73µs | -0.00% | | update/parse with yrs/large.bin | 3.9±0.28ms | 3.7±0.27ms | **-5.13%** | | update/parse with yrs/with-subdoc.bin | 14.2±0.78µs | 13.0±0.88µs | **-8.45%** |
github-actions[bot] commented 11 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 428.3±18.23µs | 426.3±20.60µs | -0.47% | | codec/jwst decode var_uint (32 bit) | 381.8±17.25µs | 373.7±17.10µs | -2.12% | | codec/jwst decode var_uint (64 bit) | 373.8±18.29µs | 382.3±19.86µs | +2.27% | | codec/jwst encode var_int (32 bit) | 543.5±28.18µs | 546.9±28.93µs | +0.63% | | codec/jwst encode var_uint (32 bit) | 377.8±20.06µs | 368.1±21.48µs | -2.57% | | codec/jwst encode var_uint (64 bit) | 367.9±16.87µs | 367.0±20.83µs | -0.24% | | codec/lib0 decode var_int (64 bit) | 387.5±19.74µs | 384.5±17.66µs | -0.77% | | codec/lib0 decode var_uint (32 bit) | 328.7±17.66µs | 328.1±15.49µs | -0.18% | | codec/lib0 decode var_uint (64 bit) | 341.7±16.44µs | 332.9±15.88µs | -2.58% | | codec/lib0 encode var_int (64 bit) | 557.4±30.15µs | 556.8±26.66µs | -0.11% | | codec/lib0 encode var_uint (32 bit) | 373.7±22.73µs | 365.7±18.81µs | -2.14% | | codec/lib0 encode var_uint (64 bit) | 378.6±19.64µs | 377.1±17.98µs | -0.40% | | ops/array/jwst/insert | 356.4±16.46µs | 345.5±14.33µs | -3.06% | | ops/array/jwst/insert range | 500.8±21.87µs | 484.0±19.55µs | -3.35% | | ops/array/jwst/remove | 220.6±11.03µs | 211.8±7.59µs | **-3.99%** | | ops/array/yrs/insert | 100.4±3.80µs | 101.4±4.77µs | +1.00% | | ops/array/yrs/insert range | 143.3±6.31µs | 142.2±5.70µs | -0.77% | | ops/array/yrs/remove | 135.2±7.83µs | 131.0±6.27µs | -3.11% | | ops/map/jwst/get | 595.3±21.17ns | 602.5±23.31ns | +1.21% | | ops/map/jwst/insert | 7.6±0.34µs | 7.5±0.28µs | **-1.32%** | | ops/map/jwst/remove | 9.7±0.33µs | 9.5±0.40µs | **-2.06%** | | ops/map/yrs/get | 436.1±24.03ns | 421.4±17.75ns | -3.37% | | ops/map/yrs/insert | 6.6±0.29µs | 6.5±0.24µs | **-1.52%** | | ops/map/yrs/remove | 8.7±0.26µs | 8.5±0.36µs | **-2.30%** | | ops/text/jwst/insert | 179.4±6.75µs | 178.1±8.48µs | -0.72% | | ops/text/jwst/remove | 4.3±0.20µs | 4.4±0.64µs | **+2.33%** | | ops/text/yrs/insert | 49.9±2.40µs | 49.3±2.23µs | -1.20% | | ops/text/yrs/remove | 3.1±0.11µs | 3.0±0.13µs | **-3.23%** | | update/parse with jwst/basic.bin | 85.0±3.72µs | 79.0±4.56µs | **-7.06%** | | update/parse with jwst/database.bin | 58.4±2.54µs | 52.6±2.18µs | **-9.93%** | | update/parse with jwst/large.bin | 4.4±0.14ms | 4.1±0.17ms | **-6.82%** | | update/parse with jwst/with-subdoc.bin | 12.1±0.44µs | 9.6±0.30µs | **-20.66%** | | update/parse with yrs/basic.bin | 60.9±3.58µs | 60.9±2.78µs | -0.00% | | update/parse with yrs/database.bin | 36.9±1.51µs | 37.4±1.56µs | +1.36% | | update/parse with yrs/large.bin | 3.1±0.15ms | 3.0±0.13ms | **-3.23%** | | update/parse with yrs/with-subdoc.bin | 7.3±0.28µs | 7.4±0.30µs | **+1.37%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 347.7±5.57µs | 346.7±1.06µs | -0.29% | | codec/jwst decode var_uint (32 bit) | 339.0±3.81µs | 340.2±4.96µs | +0.35% | | codec/jwst decode var_uint (64 bit) | 310.8±4.34µs | 309.6±3.04µs | -0.39% | | codec/jwst encode var_int (32 bit) | 385.2±8.83µs | 383.0±2.67µs | **-0.57%** | | codec/jwst encode var_uint (32 bit) | 396.3±2.26µs | 396.7±2.21µs | +0.10% | | codec/jwst encode var_uint (64 bit) | 387.7±3.33µs | 387.6±1.95µs | -0.03% | | codec/lib0 decode var_int (64 bit) | 276.5±1.36µs | 276.6±0.77µs | **+0.04%** | | codec/lib0 decode var_uint (32 bit) | 269.5±4.84µs | 270.9±4.94µs | +0.52% | | codec/lib0 decode var_uint (64 bit) | 264.7±4.56µs | 264.3±5.47µs | -0.15% | | codec/lib0 encode var_int (64 bit) | 430.2±4.32µs | 429.1±4.54µs | -0.26% | | codec/lib0 encode var_uint (32 bit) | 319.0±6.48µs | 319.5±5.56µs | +0.16% | | codec/lib0 encode var_uint (64 bit) | 391.1±3.40µs | 391.1±2.17µs | -0.00% | | ops/array/jwst/insert | 279.2±1.40µs | 278.9±1.26µs | -0.11% | | ops/array/jwst/insert range | 381.5±1.34µs | 380.1±1.46µs | **-0.37%** | | ops/array/jwst/remove | 172.1±5.71µs | 170.8±5.69µs | -0.76% | | ops/array/yrs/insert | 95.9±0.58µs | 99.4±2.02µs | **+3.65%** | | ops/array/yrs/insert range | 135.2±0.70µs | 137.2±0.54µs | **+1.48%** | | ops/array/yrs/remove | 141.5±0.78µs | 142.2±0.73µs | **+0.49%** | | ops/map/jwst/get | 470.8±13.01ns | 467.6±10.35ns | -0.68% | | ops/map/jwst/insert | 9.7±0.15µs | 9.5±0.04µs | **-2.06%** | | ops/map/jwst/remove | 9.1±0.06µs | 9.9±0.05µs | **+8.79%** | | ops/map/yrs/get | 390.7±7.28ns | 387.7±5.77ns | -0.77% | | ops/map/yrs/insert | 9.6±0.05µs | 8.3±0.03µs | **-13.54%** | | ops/map/yrs/remove | 10.5±0.03µs | 10.5±0.05µs | -0.00% | | ops/text/jwst/insert | 147.2±0.86µs | 145.9±0.76µs | **-0.88%** | | ops/text/jwst/remove | 3.9±0.05µs | 3.8±0.03µs | **-2.56%** | | ops/text/yrs/insert | 43.9±0.22µs | 43.1±0.17µs | **-1.82%** | | ops/text/yrs/remove | 3.5±0.01µs | 3.6±0.01µs | **+2.86%** | | update/parse with jwst/basic.bin | 79.9±0.36µs | 75.4±0.34µs | **-5.63%** | | update/parse with jwst/database.bin | 59.6±0.24µs | 61.1±0.34µs | **+2.52%** | | update/parse with jwst/large.bin | 3.8±0.14ms | 3.7±0.26ms | **-2.63%** | | update/parse with jwst/with-subdoc.bin | 10.8±0.06µs | 10.5±0.05µs | **-2.78%** | | update/parse with yrs/basic.bin | 64.3±0.25µs | 59.9±0.25µs | **-6.84%** | | update/parse with yrs/database.bin | 48.9±0.16µs | 45.9±0.19µs | **-6.13%** | | update/parse with yrs/large.bin | 3.1±0.11ms | 3.1±0.10ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 10.6±0.05µs | 9.7±0.04µs | **-8.49%** |