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

Lt 5012 eod borders #207

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Lt 5012 eod borders #207

merged 3 commits into from
Mar 26, 2024

Conversation

gponomarev-lykke
Copy link
Contributor

No description provided.

DateTime tradingDay,
AccountBalanceChangeReasonType? reasonType = null)
{
var whereClause = "WHERE 1=1 " + (!string.IsNullOrWhiteSpace(accountId) ? " AND AccountId=@accountId" : "")

Choose a reason for hiding this comment

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

How about indexes on this table? Is this performing ok ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good catch
Older code already used this field, but it was probably rarely used and so there was no index
I added one
This class is old, so the solution looks hack-ish, but it should work fine

Copy link

Code Coverage

Package Line Rate Branch Rate Health
MarginTrading.AccountsManagement 18% 8%
MarginTrading.AccountsManagement.AccountHistoryBroker 3% 3%
MarginTrading.AccountsManagement.Contracts 1% 0%
MarginTrading.AccountsManagement.Common 46% 19%
Summary 15% (843 / 5495) 7% (130 / 1770)

Minimum allowed line rate is 10%

@gponomarev-lykke gponomarev-lykke merged commit 1db63cc into master Mar 26, 2024
1 check passed
@gponomarev-lykke gponomarev-lykke deleted the LT-5012-eod-borders branch March 26, 2024 10:50
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.

None yet

2 participants