Commit Graph

19 Commits

Author SHA1 Message Date
joshua-spacetime 8282b674b5 fix: Always remember to release a read only tx (#1613) 2024-08-20 21:31:05 +00:00
Shubham Mishra 276387d2b3 Timer Table Implementation (#1449)
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
2024-07-16 08:38:56 +00:00
joshua-spacetime 9e0d1c9967 refactor: Record txn-level metrics in a single utility (#1414) 2024-06-13 16:30:07 +00:00
joshua-spacetime 61ee5def83 feat: System table based slow query logging (#1350) 2024-06-07 21:37:34 +00:00
Kim Altintop 2894d364fb core: Store inputs (reducer info + args) in commitlog (#1091)
Prerequisite for auto-disconnect after a database crash, requested for
analytics purposes.
2024-04-18 20:16:52 +00:00
Mario Montoya 7d5eb1532d Slow query log (#1052)
* Slow query log

* Addressing some PR comments
2024-04-17 13:53:55 +00:00
Mazdak Farrokhzad b428844c67 simplify ExecutionContext constructors (#1098) 2024-04-16 09:25:41 +00:00
Shubham Mishra b928387c60 disable iter metrics (#1074)
* disable iter metrics

* not comment out for non-iters

* remove explicit drop as clippy cried
2024-04-10 12:46:25 -05:00
Shubham Mishra 84071b5629 Batch metrics with ctx (#916)
* Commit iter metrics

* test: Make full-join benchmark async

* use Vec instead of Hash

* Revert "test: Make full-join benchmark async"

This reverts commit eed5aa8a55.

* rebase on master

* lint

* refector api

* remove lifetime from ctx (#1017)

* move ctx to higher level

* fix boilterplate

* batch more

---------

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
2024-04-05 06:57:40 +00:00
Noa 92e5a62ae1 Reduce allocations for prometheus with_label_values (#810) 2024-02-14 20:17:05 +00:00
joshua-spacetime fd6a5cecef refactor(query): Remove query string as metrics label (#721)
The purpose of this is to reduce high cardinality query metrics.
2024-01-13 01:43:01 +00:00
joshua-spacetime c265ed195f refactor(metrics): Move metric builder macros into their own crate 2023-12-05 10:26:41 -08:00
joshua-spacetime 3332fc8891 perf(590): Label query metrics with query text (#606)
Closes #590.
2023-11-28 14:30:59 -08:00
joshua-spacetime 4bbcb4fc0c perf(591): Distinguish query metrics as sql, subscription or incremental update (#605)
Closes #591.
2023-11-28 12:46:49 -08:00
james gilles 419cfca8b8 Add spacetimedb::sql::query_debug_info::QueryDebugInfo (#560)
Add spacetimedb::sql::query_debug_info::QueryDebugInfo

---------

Signed-off-by: james gilles <jameshgilles@gmail.com>
2023-11-21 22:09:04 +00:00
joshua-spacetime 2782268a36 perf(581): Track maximum transaction cpu time
Closes #581.
2023-11-21 11:07:40 -08:00
joshua-spacetime feaba247d8 refactor(485): Label metrics with database address and reducer name (#486)
Fixes #485.

Previously we were labeling metrics with internal database and reducer IDs.
2023-10-27 17:42:47 -07:00
Noa 628dac120e Simplify/deabstract module_host_actor and wasmer_module (#417)
* Simplify/deabstract module_host_actor and wasmer_module

* DatabaseLogger doesn't need an external mutex
2023-10-27 15:53:55 -05:00
joshua-spacetime 23b2e6c713 perf(461): Record metrics for rows [inserted|deleted] on commit (#462)
Closes #456.
Closes #461.

Define an execution context for database operations.
Store the database id in RelationalDB.
Record metrics for rows [inserted|deleted] on commit.
2023-10-25 15:28:26 -07:00