EXPLAIN plan logging plugin for MyBatis/MyBatis向けEXPLAIN実行計画ログプラグイン

16 views
Skip to first unread message

Naka Sho

unread,
Feb 11, 2026, 12:56:08 AMFeb 11
to mybatis-user
I created a plugin that runs EXPLAIN <SQL> after Executor.query/update and logs the plan to statementLog at DEBUG level (CALLABLE is skipped; failures do not affect the original query).
  Source: https://github.com/naka-sho/mybatis-explain-plugin , Maven: io.github.naka-sho:mybatis-explain-plugin:1.0.0, config: <plugin
  interceptor="io.github.nakasho.mybatis.explain.ExplainInterceptor"/>.
  Could you advise whether this should stay external or be considered for core/official plugins, and any improvements you’d like?

------------------------------------------

Executor.query/update 実行後に EXPLAIN <SQL> を実行し、statementLogのDEBUGに出力するプラグインを作成しました(CALLABLEはスキップ、EXPLAIN失敗は本体に影響しません)。
  ソース: https://github.com/naka-sho/mybatis-explain-plugin 、Maven: io.github.naka-sho:mybatis-explain-plugin:1.0.0、設定例: <plugin
  interceptor="io.github.nakasho.mybatis.explain.ExplainInterceptor"/>。
  外部プラグインで十分か、コア/公式プラグインとして検討対象になるか、改善点があればご意見をいただけますか。

Iwao AVE!

unread,
Mar 2, 2026, 11:24:16 AMMar 2
to mybati...@googlegroups.com
Hello, 

Thank you for sharing your work!
There is no official/core plugin, so you should maintain it under your repo.

The README looks pretty good.
Adding an English version of the README usually is a good idea for MyBatis related stuff.

Also, adding some tags (a.k.a. topics) to the repo might help people discover your plugin

Regards,
Iwao

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mybatis-user/5b4d0cd7-5522-4304-b6ab-ef2abd7d732fn%40googlegroups.com.

Naka Sho

unread,
Mar 5, 2026, 9:48:32 AM (12 days ago) Mar 5
to mybatis-user

Thank you for your feedback and kind words!

Good to know about the official/core plugins. I will gladly continue maintaining it under my own repository.

I really appreciate the suggestions. Adding an English README is definitely a great idea, and I will work on that soon. I will also add relevant topics to the GitHub repository to improve its discoverability.

Thanks again for taking the time to review my plugin and for your advice.



2026年3月3日火曜日 1:24:16 UTC+9 Iwao AVE!:
Reply all
Reply to author
Forward
0 new messages