I have very big table Pushes
that contains Sent
field (boolean). I saw this question. Now I know that I need partial index. Because I'm going to select all rows that have Sent
as true (~ 30% from whole table). After this, I'm going to find special row that I need by some conditions.
I hope to have a growth of performance after setting the index. I saw this issue. But I don't understand how to set partial index for current npgsql version. I use .Net Core 3.1, all packages have the last version. Current npgsql version is 3.1.1.2
.
I can't find .HasIndexPartial
method. Was it removed?
I can call only
// indexes
modelBuilder.Entity<Push>()
.HasIndex(x => x.Sent);
But how I can say here that it's partial index?