marten
marten copied to clipboard
.NET Transactional Document DB and Event Store on PostgreSQL
Say one projection wants to use the build products of another projection. Assuming that we do something to stay that the dependent projections always run on the same box (and...
currently I'm working on a small reporting tool that will output some of our events (create and change events for a specific type) into a csv specific by a start...
We shouldn't *encourage* folks to do this, but leave this here.
_**Edited by @oskardudycz**_ ## Overview Currently, Marten supports two easiest way of Event Schema Versioning: - namespace migration - type name migration More on that here: https://martendb.io/documentation/events/versioning/. We also support...
it seems that F# discriminated unions are not supported for aggregation / projection, example of code that does not work: ```fsharp open System open Marten open Marten.Schema.Identity type AccountCreation =...
In Marten's upsert functions, it checks for an existing row using Postgres' `ON CONFLICT` feature, using a named constraint: `ON CONFLICT ON CONSTRAINT mt_doc_mytable_pkey` According to the [Postgres docs]( https://www.postgresql.org/docs/11/sql-insert.html#SQL-ON-CONFLICT):...
To avoid table bloat with the Marten Event Store, events table (mt_events by default) could be partitioned using PostgreSQL table partitioning. While the table can already be manually partitioned after...
Given this class: ```cs class User { public Guid Id { get; set; } public List RoleIds { get; set; } } ``` ```cs var session = store.QuerySession(); session.Query(x =>...
Given this class: ```cs class User { public Guid Id { get; set; } public List Logins { get; set; } } ``` This query ```cs session.Query .SelectMany( x =>...