Skip to content

Sqlserver backed recenthistory#10

Open
VanGoghSoftware wants to merge 2 commits intojlucansky:masterfrom
VanGoghSoftware:sqlserver_backed_recenthistory
Open

Sqlserver backed recenthistory#10
VanGoghSoftware wants to merge 2 commits intojlucansky:masterfrom
VanGoghSoftware:sqlserver_backed_recenthistory

Conversation

@VanGoghSoftware
Copy link
Copy Markdown

Implemented SQL server recent job history persistence.

$"SELECT * \n" +
$"FROM SELECTION \n" +
$"WHERE ROW_KEY <= {limit}";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the original in memory implementation had
.Select(x => x.OrderByDescending(y => y.ActualFireTimeUtc).Take(limitPerJob).Reverse()) within the group by.

I'm not sure if it's necessary or not, but if you wanted to keep it, you could add:

$"ORDER BY {columnName}, ROW_KEY DESC";

and that should perform the same Reverse.

@maldworth
Copy link
Copy Markdown

👍 Great PR. Hopefully this gets accepted

@pigiax
Copy link
Copy Markdown

pigiax commented Apr 24, 2020

No news on this pr? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants