Skip to content
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

Sqlserver backed recenthistory #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JordanVanGogh
Copy link

Implemented SQL server recent job history persistence.

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

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

👍 Great PR. Hopefully this gets accepted

@pigiax
Copy link

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