[PR #542] [MERGED] Use prepared statement for bulk writes #1328

Closed
opened 2026-05-07 01:01:35 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/542
Author: @nicois
Created: 12/12/2022
Status: Merged
Merged: 12/12/2022
Merged by: @binwiederhier

Base: mainHead: nicois/use-prepared-statement-for-bulk-writes


📝 Commits (1)

  • 1235ea5 Use prepared statement for bulk writes

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 server/message_cache.go (+12 -2)

📄 Description

When executing the same statement multiple times, avoid the overhead of re-parsing the statement for each insert.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/542 **Author:** [@nicois](https://github.com/nicois) **Created:** 12/12/2022 **Status:** ✅ Merged **Merged:** 12/12/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `nicois/use-prepared-statement-for-bulk-writes` --- ### 📝 Commits (1) - [`1235ea5`](https://github.com/binwiederhier/ntfy/commit/1235ea5bb546677d34cb86d96ae7da68d2097b8f) Use prepared statement for bulk writes ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/message_cache.go` (+12 -2) </details> ### 📄 Description When executing the same statement multiple times, avoid the overhead of re-parsing the statement for each insert. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:35 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1328
No description provided.