-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Improve SqliteDataRecord class Efficiency #18438
Improve SqliteDataRecord class Efficiency #18438
Conversation
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.
Another part of #13987 is to cache rowidOrdinal so we don't have to find it every time we call GetStream. (remember to invalidate the cache in Read)
Oh, can you override DbDataReader.GetTextReader to return |
Thanks @bricelam |
1bf20bc
to
dcf2776
Compare
dcf2776
to
8578769
Compare
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.
Oh wait, still need to cache rowidOrdinal.
@bricelam I've commited some changes related to caching rowidOrdinal just to check if the general approach is OK, in case it is, I can perform a code clean up and add more tests. |
06f0bb6
to
10ce870
Compare
10ce870
to
9c540ab
Compare
- Update methods GetBytes and GetChars to use internally GetStream.
9c540ab
to
5c5227b
Compare
Thanks for the contribution @nmichels! Sorry if I did too much; I probably should have pinged you before picking it up where you left off. |
I believe after this PR only, I am seeing intermittent seg fault on sqlite tests on helix. |
This reverts commit 5c5227b.
This reverts commit 5c5227b.
Fixes Microsoft.Data.Sqlite: Make GetBytes, GetChars, and GetTextReader more efficient #13987