lealone-plugins / lealone-plugins/lealone-bench

纯讨论下AsyncPgSingleRowUpdateBTest的实现

Open
#2 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

  1. 用了new Thread来执行SQL,但是SQL又由vertx的SqlClient来执行,这里是不是会有额外的线程间的context switch? 就是new Thread和vertx event loop间的context switch
  2. 是不是把在new Thread里运行的SQL,放到vertx vertical里运行会更加快?这样的话就没有额外开销了,都在vertx的event loop里运行

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.

Research direction

Start by reading AsyncPgSingleRowUpdateBTest and tracing its new Thread, Vert.x SqlClient, and event-loop execution paths. Measure the current implementation and a Vert.x-based alternative, then document whether the context-switch cost changes the result and what implementation should be preferred.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.