Commit Graph

3186 Commits

Author SHA1 Message Date
joshua-spacetime f276b25d6b chore(vm): Pass database address to the compiler (#637)
The database address will be needed to optimize joins.
In particular it will be used to look up table size metrics.
2023-12-08 22:47:15 +00:00
joshua-spacetime 09b2d0f033 refactor(metrics): Move table size metric into lib (#636)
Query optimization will soon need this metric.
Therefore it must be moved out of core and into lib.
Eventually we might want to move all metrics into lib.
2023-12-08 14:20:56 -08:00
Kim Altintop cb70cb3f7e core: Log db open progress at INFO (#646) 2023-12-08 08:41:55 +01:00
Tyler Cloutier f2a45ca09c Merge pull request #20 from clockworklabs/cloutiertyler-patch-2
Remove the set up to point spacetime server to localhost.
2023-12-07 18:51:21 -08:00
Tyler Cloutier 21b73f1e93 Update index.md 2023-12-07 18:34:55 -08:00
Tyler Cloutier b21ec868ab Update index.md 2023-12-07 18:30:11 -08:00
joshua-spacetime 8ffa608bea chore: Update tracy to 0.10.4 (#644)
The previous protocol is incompatible with the latest tracy client.
2023-12-08 01:56:21 +00:00
Kim Altintop 4b9f30f5a0 ci: Exercise the right discipline to restart docker containers (#632)
One does not simply restart a docker container. But when you do,
SpacetimeDB also restarts.
2023-12-07 19:32:19 +01:00
Ingvar Stepanyan e9724fc8d0 Add .unwrap() to Rust quickstart 2023-12-07 12:18:52 +00:00
Ingvar Stepanyan bc461641c5 Version bump for NuGet 2023-12-07 12:18:52 +00:00
Ingvar Stepanyan 6c40e840f5 Various fixes for C# column attrs
- Fixed column position in sequences (it used index after filtering instead of actual column index).
 - Fixed sequence definitions conflicting with automatic sequences derived from Constraints.
 - Removed constraints for columns that don't have any.
 - Hid internal fields + more minor refactorings.
2023-12-07 12:18:52 +00:00
Ingvar Stepanyan ed9b866c1a Restore old meaning of public ColumnAttrs enum
This is user-facing API that's used in docs & examples, so renaming the internal ColumnAttrs to ColumnDefWithAttrs and ConstraintFlags back to ColumnAttrs so that public examples & existing projects can still compile.
2023-12-07 12:18:52 +00:00
Ingvar Stepanyan 395b86c5ec Reformat C# (with CSharpier) 2023-12-07 12:18:52 +00:00
Ingvar Stepanyan 2a33e47179 Add autoinc primary key to integration tests 2023-12-07 12:18:52 +00:00
Ingvar Stepanyan afbd49fe58 Emit codegen files 2023-12-07 12:18:52 +00:00
Shubham Mishra ccf291ba17 Added RWLock on committed state (#599)
Removed mutex Locking on wrapper state object (Inner) and added more granual locks on indivisual states
---------

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2023-12-06 20:30:43 +05:30
Kim Altintop 31915b2a52 Try to fsync message log on drop (#627) 2023-12-05 19:31:44 +01:00
John Detter c8f0e3d490 Added metrics to publish script 2023-12-05 10:26:41 -08:00
joshua-spacetime c265ed195f refactor(metrics): Move metric builder macros into their own crate 2023-12-05 10:26:41 -08:00
John Detter e4b5a637e3 Force flag now allows you to upgrade even if your version matches (#631)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-12-05 12:24:33 -06:00
Ingvar Stepanyan fe47a22f65 C#: don't show "Extracting..." message if already unpacked (#628) 2023-12-05 17:42:35 +00:00
joshua-spacetime b5978ccba4 fix: Temporarily disable flaky smoketests (#629) 2023-12-05 09:34:51 -08:00
Ingvar Stepanyan ab63654dab Support arbitrary RHS in C# Query (#586) 2023-12-05 17:28:46 +00:00
John Detter 79ff6dffc6 Version upgrade to 0.8.0 (#622)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-12-04 13:19:25 -06:00
Mario Montoya 4ef1bd5296 Refactoring bootstrapping and adding full support for constraints & multi-column indexes (#596)
* Refactoring bootstrapping and adding full support for constraints & multi-column indexes

* Removed deleted code and add some comments

* Add comment for Constraints

* Update crates/core/src/db/datastore/locking_tx_datastore/mod.rs

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>

* Update crates/core/src/db/datastore/locking_tx_datastore/mod.rs

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>

* Addressing some PR comments & remove cloning

* Adding details for when fail to decode rows in replay

* Apply Kim's fix for replay bug

* Addressing some PR comments

* Merge

* Fix conflicts

* Fix conflicts

* Fix test

* Fix generation of code for csharp & typescript, now it generate FilterBy for all columns

* Fix for index generation

* Fixing C# index generation

* Merge

* Fix compilation on csharp bindings

---------

Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-12-04 12:04:38 -05:00
joshua-spacetime 9ae4e079b0 refactor(metrics): Remove dependencies of metric builder macros (#624)
Prometheus metric builders should not have any outside dependencies,
other than prometheus.
2023-12-01 22:36:35 -08:00
Mario Montoya bb4a78ffc5 Allow to see the context of a Unsupported query for a subscription (#621) 2023-12-01 16:11:26 +00:00
joshua-spacetime 6efcdfacfe chore: Remove dependency on sys-info 2023-11-30 13:58:38 -08:00
joshua-spacetime 7cab1705dc refactor: Remove global disk and memory tracking
These metrics are already tracked via kubernetes.
And sys-info does not appear to be accurate on virtual systems anyway.

Furthermore what we really want are disk and memory usage metrics per database.
We already track disk usage for the wal, objectdb, and module logs.
Tracking memory usage per database requires a custom allocator.
2023-11-30 13:58:38 -08:00
Kim Altintop 094288a6ec core: Make advertise_addr of Node optional (#618)
The semantics here changed slightly, in that a `None` address means that
the node is known but not currently connected.
2023-11-30 21:23:37 +01:00
Ingvar Stepanyan 4f74a5c5c6 Move to .NET 8 WASI support (#587) 2023-11-30 14:54:26 +00:00
Noa 5c8ef4fbde Update wasmtime (#598) 2023-11-30 10:51:34 +00:00
joshua-spacetime 7a694955ee fix(CommitLog): Do not truncate the log on out of order errors (#588)
Add new error variant for out-of-order and adjust test

---------

Co-authored-by: Kim Altintop <kim@eagain.io>
2023-11-29 22:25:14 +00:00
joshua-spacetime 9d1dc516f4 fix: Remove newlines from QueryDebugInfo (#616)
The query string in QueryDebugInfo is used as a label for certain metrics.
And grafana cannot handle label values with newlines.
2023-11-29 13:46:54 -08:00
John Detter 9f18c23e54 Fixed bugs 2023-11-29 12:06:40 -06:00
Mario Montoya 4d49b14ee6 Format binary data as hex in sql/satn (#521)
* Format binary data as hex in sql/satn

* Add json test for identity

* Addressing some PR comments

* Fix test

---------

Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
2023-11-29 13:01:55 -05:00
joshua-spacetime 9208d7ce46 perf(610): More granular histogram buckets for timing metrics (#613)
Closes #610.
2023-11-29 17:50:22 +00:00
John Detter d08784a871 Fix issue when you have no circles remaining 2023-11-29 11:46:03 -06:00
John Detter 5b146b9885 Updated leaderboard 2023-11-29 11:27:05 -06:00
John Detter 9abf32296c Updated logout/login logic 2023-11-29 11:16:40 -06:00
joshua-spacetime 288853587a perf(608): Record query compilation time metrics
Closes #608.
2023-11-29 09:15:35 -08:00
joshua-spacetime 257b0c6127 perf(607): Record execution time metrics per query
Closes #607.
2023-11-29 09:15:35 -08:00
John Detter 227971fa60 Testing with Tyler 2023-11-29 11:05:49 -06:00
John Detter 7d39eb7656 Fixed camera issueu 2023-11-29 10:27:02 -06:00
Kim Altintop 7b53b85fc1 core: Load large objects eagerly during log replay (#594)
Instead of deferring object storage loads to when they're needed, load
them in the `Replay` iterator. This allows to handle log trimming logic
uniformly for the situation when a commit happened to be flushed to
disk, but object storage didn't.
2023-11-29 07:40:59 +01:00
Tyler Cloutier f9125b6440 Merge pull request #19 from clockworklabs/revert-18-tyler/reorg
Revert "Reorganized the doc paths to match slugs and removed _category.json files"
2023-11-28 20:04:34 -08:00
Tyler Cloutier 9f9bf57947 Revert "Reorganized the doc paths to match slugs and removed _category.json files" 2023-11-28 20:03:42 -08:00
Tyler Cloutier 033573dd0e Merge pull request #18 from clockworklabs/tyler/reorg
Reorganized the doc paths to match slugs and removed _category.json files
2023-11-28 19:39:31 -08:00
Tyler Cloutier 3d014fb175 Reorganized the doc paths to match slugs and removed _category.json files 2023-11-28 17:21:24 -08:00
joshua-spacetime 3332fc8891 perf(590): Label query metrics with query text (#606)
Closes #590.
2023-11-28 14:30:59 -08:00