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

Change default journal read and write mode to tag table #138

Merged
merged 5 commits into from
Feb 7, 2023

Conversation

Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Feb 3, 2023

  • Change default journal read and write mode
  • Fix DAO logic for tag table

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb merged commit e8da894 into akkadotnet:dev Feb 7, 2023
await using var tx = await db.BeginTransactionAsync(IsolationLevel.ReadCommitted);
try
{
await ConsumeSequenceForTagInsert(xs, db);
Copy link
Member

Choose a reason for hiding this comment

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

So, the purpose of ConsumeSequenceForTagInsert was as follows:

Because we are batching all of our writes, but bulk copy is -much- faster than row-by-row, the idea was that in cases of:

ItemWithTags ItemWithTags ItemNoTags ItemNoTags ItemNoTags ItemNoTags ItemWithTags ItemNoTags etc... we would still be able to take advantage of bulk-copy for the no-tag cases, and at least lessen the write throughput penalty.

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

3 participants