on-internet
← Community

How to distinguish Npgsql connection pool wait time from EF Core BeginTransactionAsync latency?

Stack Overflow ·

We are investigating high database latency in a multi-tenant application using .NET 10, Entity Framework Core, Npgsql and PostgreSQL 18. Configuration We register a singleton NpgsqlDataSource and use scoped EF Core DbContext instances. Our maximum Npgsql connection pool size is 30. builder.Services.AddSingleton<NpgsqlDataSource>( _ => new NpgsqlDataSourceBuilder(connectionString).Build()); builder.Services.AddDbContext<FacturacionDbContext>( (services, options) => options.UseNpgsql( services.GetRequiredService<NpgsqlDataSource>())); Observed behavior When running a benchmark with 250 virtual u

Comments

Sign in or sign up to comment and upvote.

No comments yet.