Hi there,
I am DBA with zero C# programming experience however I would like to ask all C# programmers out there how they would handle large JSON data. Currently I have a very slow query when trying to convert filestream NVARBINARY(MAX) stored JSON data into NVARCHAR(MAX) from within SQL Server, such as:
SELECT ID,
JSONDATA,
(CONVERT(NVARCHAR(MAX),JSONDATA)) AS 'JSON'
FROM Forms
Is there a method in C# where this (CONVERT(NVARCHAR(MAX),JSONDATA)) conversion can be taken out of the database to be performed in the application layer?
When (CONVERT(NVARCHAR(MAX),JSONDATA)) is removed from the query it returns extremely fast. With (CONVERT(NVARCHAR(MAX),JSONDATA)) included it takes many minutes.
TIA
I am DBA with zero C# programming experience however I would like to ask all C# programmers out there how they would handle large JSON data. Currently I have a very slow query when trying to convert filestream NVARBINARY(MAX) stored JSON data into NVARCHAR(MAX) from within SQL Server, such as:
SELECT ID,
JSONDATA,
(CONVERT(NVARCHAR(MAX),JSONDATA)) AS 'JSON'
FROM Forms
Is there a method in C# where this (CONVERT(NVARCHAR(MAX),JSONDATA)) conversion can be taken out of the database to be performed in the application layer?
When (CONVERT(NVARCHAR(MAX),JSONDATA)) is removed from the query it returns extremely fast. With (CONVERT(NVARCHAR(MAX),JSONDATA)) included it takes many minutes.
TIA