Posts tagged Performance
16th November 2026Indexing JSON Documents in Marten and PolecatStoring documents as JSON doesn't mean giving up database indexes. A tour of the indexing options in Marten on PostgreSQL and Polecat on SQL Server: single property, multi-property, unique, partial, GIN and GiST indexes, how child collection queries use them, how both tools detect and migrate index changes, and how to read the SQL and the query plan to prove an index is being used.
13th November 2026Tenants Taking TurnsA JasperFx client running thousands of tenants across hundreds of PostgreSQL databases was losing pods to out of memory kills during projection rebuilds. Here is how we worked through it together: partition the projection work by tenant, make the tenants take turns, and put a limit on the work in flight so one node can never load more than it can hold. Plus the other levers Marten gives you for very large systems, and how JasperFx works with clients on this kind of problem.
21st September 2026Every Lever Marten Gives You for Scaling a Big Event Sourcing SystemA tour of everything in Marten and Wolverine for scaling large event sourced systems: Quick Append, hot/cold event archiving, stream compacting, binary event serialization, read replicas, per-tenant partitioning, database per tenant and sharding, ancillary stores per module, projection lifecycles, strongly consistent async projections, partitioned projection data, and Wolverine-managed projection distribution.
22nd July 2026Smarter LINQ: Pushing More of Your Query Into PostgreSQLRecent Marten work widens what your LINQ Where/Select expressions translate into PostgreSQL SQL and JSONPath -- so more of your query runs in the database instead of falling back to slower client-side evaluation.
12th April 2026The Fastest Possible HTTP Queries with MartenHow to build the most efficient possible HTTP query endpoints in .NET by streaming JSON straight from PostgreSQL with Marten — using Marten.AspNetCore's WriteArray and compiled queries with zero C# allocation.