sap-commerce-db-sync icon indicating copy to clipboard operation
sap-commerce-db-sync copied to clipboard

Deprecated data types should be converted ( SQL Server NTEXT, TEXT, IMAGE )

Open axelgr74 opened this issue 1 year ago • 1 comments

See https://learn.microsoft.com/en-us/sql/database-engine/deprecated-database-engine-features-in-sql-server-2016?view=sql-server-ver16#features-deprecated-in-a-future-version-of-sql-server

There's a range of deprecated SQL Server data types (NTEXT, TEXT, IMAGE) which existing Commerce databases may still use, simply because Commerce did use them in historical versions and Commerce does never change column types. These columns will not work optimally in SQL Azure today (e.g. index optimisation cannot be done online) and should be changed ( e.g. to NVARCHAR(MAX), NVARRBINARY(MAX) ).

Database migration is a one-moment-in-time opportunity to perform that step without the otherwise inevitable need to perform a table modification with downtime.

axelgr74 avatar May 15 '24 08:05 axelgr74

Can you please provide some more hybris/Commerce version specific examples? From what I recall (I checked only up to 5.7) for MSSQL IMAGE type was used to store java.io.Serializable up to version 6.7, after that it was changed to VARBINARY(MAX), other types of "unclassified text data" (HYBRIS.LONG_STRING etc.) was persisted as NVARCHAR(MAX)

lnowakowski avatar May 17 '24 04:05 lnowakowski