gaepdit / complaint-tracking

Complaint Tracking System
The Unlicense
1 stars 2 forks source link

Consider moving the DB archive regex functions out of SQL and into C# #711

Open dougwaldron opened 2 months ago

dougwaldron commented 2 months ago

The data archive views make use of the SqlServerRegexFunctions assembly to replace some text. This requires installing the assembly in the database which has to be done separately from the EF migration/deployment process. It would be nice if there was only one deployment process, if only because the database is constantly rebuilt when debugging locally.

Because of this, it's worth considering whether the text replacement functionality should be performed in the C# code rather than in the SQL code.

Pros of leaving the regex replace in SQL

Pros of moving the regex replace to C#

In either case, performance should be compared and taken into account.