Our great sponsors
-
Entity Framework
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I think you're seeing the same issue as I saw here: https://github.com/dotnet/efcore/issues/19418 - I think you may have commented on a linked/related issue (the code looks familiar).
We can see this as a huge CPU spike when it occurs and the query takes ~16s to complete (the code above is just a minimum repro example and I have a standalone repo here with two branches with different approaches to see if I could coerce EFC7 to generate the correct query).
Related posts
- Multi-tenancy using schemas with Entity Framework and PostgreSQL
- Linux or Windows for .net development?
- Show HN: Tankman – An Open Source User Management and Authorization MicroService
- EF Core/NET 6 - How to execute sql server stored procedure and get the result set?
- Deploying sqlite database to android emulator