Remove auto-transaction behavior from main instance

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
databases

Research direction

The issue names no files or tests. Start by locating the primary database instance's insert path and the implementations of db.flush() and db.transaction(); verify that awaiting an insert commits it, while operations inside an explicit transaction retain transactional behavior.

Written by the indexing model from the issue text.

Description

When you do an await db.insert(...) on the primary db instance, that should internally be fully committed without requiring an additional db.flush().

If the user wants transaction behavior, they should explicitly use db.transaction().

Dominant language
JavaScript
Stars
76
Forks
13
Avg merge
1h 26m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from holepunchto/hyperdb

All issues in holepunchto/hyperdb

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.