-
Notifications
You must be signed in to change notification settings - Fork 146
Add option to auto-create Properties column as DataType SqlXml #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd strongly disagree with making this a default. Although SQL Server stores the XML data type much more efficiently than the same XML stored as text, it requires extra processing which incurs additional CPU overhead, which potentially reduces write performance -- something you definitely want to avoid when logging. The storage footprint savings are probably irrelevant given that you shouldn't be logging huge data structures. Additionally all of my deployments use JSON for structured data and I'd argue that XML is rapidly falling out of favor. |
I'll tag this as an enhancement request since it comes up periodically. Once I grind through the open bugs, I'm going to start looking at new feature requests. I think it should be implemented as an option with I'd like to start building up a Wiki for this repo since the README is getting unwieldy, and there I'd caution against the XML type in high-frequency logging scenarios. |
Currently overhauling configuration and better control over column data types is part of it, including XML column support. Docs will recommend against this for write-performance reasons, most likely. |
Uh oh!
There was an error while loading. Please reload this page.
I work on a console developed in .net core 2.0.
In the appsettings.json file, i have this declaration:
The log table have a properties column's datatype set to nvarchar(max), not xml.
A workaround is to exexute this command :
The text was updated successfully, but these errors were encountered: