-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature/metrics DB/SQL server #2
Conversation
Perhaps @mausch could lend a hand in getting the execNonQueryAsync to work without throwing ObjectDisposedException? :)
Yes Logary.DB.Tests have it isolated. |
|
Sounds like mausch/FsSql#13 . Needs more investigation... concurrency bugs are always nasty :-/ |
I see... Do you think I should avoid async in the mean while, or will you have a look at it? |
Now that there's a test for it I might take a look, but in the meantime it's best to avoid async to be safe. |
What's left is verifying good data is saved in the fields by completing the skipped tests.
.WithColumnDescription("Arbitrary correlation id from context") | ||
|> ignore | ||
|
||
base.Create.Index("IX_Metrics_EpochTicksTypeLevel").OnTable(Defaults.MetricsTable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smoergaaskatten here are the indicies we talked about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For shipping, only on EpochTicks. Searching, below is fine.
Path = server and metric path and metric name - move to individual columns possibly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimisation ~20k/s:
- Path -> separate table, PathId
- Type -> known ints/enum, description on col
- CorrelationId -> CorrelationType (type of data in next col) and CorrelationId (string approx 35 no of chars?)
An evening hack.
To be clear: this supports any DB that https://github.com/mausch/FsSql supports.
The tests are being run with SQLite.
@karaaie - what do you think?
@mausch - The example problem comes when running Logary.DB.Tests