Click here to Skip to main content
15,888,454 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Rewrite or...? Pin
Sander Rossel9-Sep-22 23:13
professionalSander Rossel9-Sep-22 23:13 
GeneralRe: Rewrite or...? Pin
Paul Sanders (the other one)10-Sep-22 5:02
Paul Sanders (the other one)10-Sep-22 5:02 
AnswerRe: Rewrite or...? Pin
Carl_Sharman8-Sep-22 21:58
Carl_Sharman8-Sep-22 21:58 
AnswerRe: Rewrite or...? Pin
maze38-Sep-22 23:02
professionalmaze38-Sep-22 23:02 
AnswerRe: Rewrite or...? Pin
kaserei8-Sep-22 23:59
kaserei8-Sep-22 23:59 
GeneralRe: Rewrite or...? Pin
Sander Rossel9-Sep-22 23:21
professionalSander Rossel9-Sep-22 23:21 
GeneralRe: Rewrite or...? Pin
kaserei10-Sep-22 0:21
kaserei10-Sep-22 0:21 
AnswerRe: Rewrite or...? Pin
jochance9-Sep-22 1:24
jochance9-Sep-22 1:24 
One very good and not-going-to-flip-the-canoe improvement might be Flyway.

The learning curve to some very basic "make sure my database state is what I think it should be" is not at all steep, but there are also some nice to haves if you dig deeper.

You essentially version control your DDL/DML into numbered scripts which it then facilitates applying to a given database by checking to see what was the most recent one applied and applying anything newer. A nifty option (that you have to also create if you want) are undo scripts correlated to the "do" scripts that allow you to rollback the change made by the "do".

This marries into build/release pipelines in easy and good ways.

For an Azure DevOps build pipe, you might first have a commandline step "clean my database and start over so nothing is funky from a previous mistake or someone mucking around because it is the build box".

In both build and release ADO pipes it is another commandline step added to flyway migrate the db. You could deploy and run the flyway scripts and flyway infrastructure required to run them (a bunch of java) from the artifact project folders being deployed if you wanted to.

Typically, we don't do that, opting instead to deploy and run the migrations from a totally different environment. We do this partially because there would be multiple service hosts in a deployment group and you only need migrations to run once. While it's not a huge bunch of more binaries/data to throw out there, on all but one machine it would generally exist for very little reason.

"LINQ queries are a pain in VB!"

I'd forgotten that particular horror, thanks.
GeneralRe: Rewrite or...? Pin
Sander Rossel9-Sep-22 23:23
professionalSander Rossel9-Sep-22 23:23 
AnswerRe: Rewrite or...? Pin
Cpichols9-Sep-22 1:49
Cpichols9-Sep-22 1:49 
AnswerRe: Rewrite or...? Pin
MSBassSinger9-Sep-22 3:29
professionalMSBassSinger9-Sep-22 3:29 
AnswerRe: Rewrite or...? Pin
MikeCO109-Sep-22 3:52
MikeCO109-Sep-22 3:52 
GeneralRe: Rewrite or...? Pin
Sander Rossel9-Sep-22 23:31
professionalSander Rossel9-Sep-22 23:31 
GeneralRe: Rewrite or...? Pin
MikeCO1010-Sep-22 3:35
MikeCO1010-Sep-22 3:35 
GeneralRe: Rewrite or...? Pin
Sander Rossel11-Sep-22 0:05
professionalSander Rossel11-Sep-22 0:05 
AnswerRe: Rewrite or...? Pin
Cliff Buckley9-Sep-22 4:36
Cliff Buckley9-Sep-22 4:36 
AnswerRe: Rewrite or...? Pin
Member 93013329-Sep-22 4:37
professionalMember 93013329-Sep-22 4:37 
AnswerRe: Rewrite or...? Pin
Kirk 103898219-Sep-22 8:21
Kirk 103898219-Sep-22 8:21 
AnswerRe: Rewrite or...? Pin
DerekT-P9-Sep-22 8:49
professionalDerekT-P9-Sep-22 8:49 
GeneralRe: Rewrite or...? Pin
Sander Rossel9-Sep-22 23:37
professionalSander Rossel9-Sep-22 23:37 
AnswerRe: Rewrite or...? Pin
BryanFazekas9-Sep-22 9:28
BryanFazekas9-Sep-22 9:28 
AnswerRe: Rewrite or...? Pin
Luca Leonardo Scorcia11-Sep-22 2:39
professionalLuca Leonardo Scorcia11-Sep-22 2:39 
AnswerRe: Rewrite or...? Pin
Max Santos12-Sep-22 9:41
Max Santos12-Sep-22 9:41 
AnswerRe: Rewrite or...? Pin
Matt McGuire16-Sep-22 5:31
professionalMatt McGuire16-Sep-22 5:31 
RantHow arrogant one can be? Pin
Kornfeld Eliyahu Peter7-Sep-22 22:43
professionalKornfeld Eliyahu Peter7-Sep-22 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.