Currently it appears the only way I can roll Columnstore Indexes (https://docs.microsoft.com/en-us/sql/relational-databases/indexes/columnstore-indexes-overview?view=sql-server-2017) is to basically write a ton of SQL during a migration and leave the database in a state that the model is not really aware about.
Is there any planned support for these unique types of indexes for the SQL Server provider of EF Core?
@StrangeWill You could also use SSDT for database first development
Hmm, yeah I guess going back to SSDT is an option, code-first and EF migrations brought us a _ton_ of benefits though.
EF Core Power Tools can generate DbContext and POCO classes from your SSDT project...
EF Core Power Tools can generate DbContext and POCO classes from your SSDT project...
Yep, it just requires us to do double up/change a lot of our process:
We'll consider that but it's definitely has a non-zero cost, we'd probably rather just hack it into the migration over lose all the benefits we get with code-first migrations.
Fwiw, you can run sqlpackage on Linux
Is code first EF Core has plan to support Columstore or not? how many years EF Core wants to be behind ?
We just threw some SQL shenanigans into the migration, I'm not a fan of it but the other solutions (SSDT/sqlpackage/etc.) are _significantly_ worse.
It's not a huge deal because we only use it on a handful of tables, I could see it being a huge nightmare on larger projects.
I do like the idea of being able to push the benefits of columnstore indexes (and other possible storage mechanisms provided by other servers?), not sure how abstracted you can be on that.
We Hate SSDT/sqlpackage/etc , If we want do something we like to do it code first or in sql management studio , ef core code first is so lazy with new features of sql server, it seems if they are not even have new version of sql server and they work with so old version that nobody even use , is it possible they even dont know about Columstore Index Storage? 馃
We just threw some SQL shenanigans into the migration, I'm not a fan of it but the other solutions (SSDT/sqlpackage/etc.) are _significantly_ worse.
It's not a huge deal because we only use it on a handful of tables, I could see it being a huge nightmare on larger projects.
I do like the idea of being able to push the benefits of columnstore indexes (and other possible storage mechanisms provided by other servers?), not sure how abstracted you can be on that.
Can you please share these migration codes? or if you have git/repository about it , can i see?
It's literally just commenting out the table stand up, then using migrationBuilder.SQL to build the columnstore indexes, also you have to remove things like foreign keys into that table.
Very fragile, but it gets the job done.
It's literally just commenting out the table stand up, then using
migrationBuilder.SQLto build the columnstore indexes, also you have to remove things like foreign keys into that table.Very fragile, but it gets the job done.
do you know any link or website ?
Nope, it's pretty basic if you know how to configure columnstore indexes from SQL, and if not you can find guides on that form Microsoft.
As we look forward into more and more heavy data lifting with EF Core (its performance really allows for it), Columstore starts to become a more powerful tool to use for those tasks, any consideration in seeing this on v6?