[PR #502] [MERGED] Batch message INSERTs #1320

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

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/502
Author: @binwiederhier
Created: 11/15/2022
Status: Merged
Merged: 11/17/2022
Merged by: @binwiederhier

Base: mainHead: async-message-cache


📝 Commits (7)

📊 Changes

10 files changed (+256 additions, -20 deletions)

View changed files

📝 cmd/serve.go (+6 -0)
📝 docs/config.md (+13 -1)
📝 docs/releases.md (+5 -0)
📝 server/config.go (+4 -0)
📝 server/message_cache.go (+69 -13)
📝 server/message_cache_test.go (+5 -5)
📝 server/server.go (+2 -1)
📝 server/server.yml (+8 -0)
util/batching_queue.go (+86 -0)
util/batching_queue_test.go (+58 -0)

📄 Description

No description provided


🔄 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/502 **Author:** [@binwiederhier](https://github.com/binwiederhier) **Created:** 11/15/2022 **Status:** ✅ Merged **Merged:** 11/17/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `async-message-cache` --- ### 📝 Commits (7) - [`b4933a5`](https://github.com/binwiederhier/ntfy/commit/b4933a5645f296c519f12a8f78bdeb7cfd3f17b9) WIP: Batch message INSERTs - [`ad860af`](https://github.com/binwiederhier/ntfy/commit/ad860afb8b3715794d7a6d6d6bd3e25440895c12) Polish async batching - [`497f871`](https://github.com/binwiederhier/ntfy/commit/497f871447a9b0f8f9e802831e8a4eb8c47401a7) Docs - [`e147a41`](https://github.com/binwiederhier/ntfy/commit/e147a41f928241f8497ead40d6aada293cd6255d) Fix race in tests - [`db9ca80`](https://github.com/binwiederhier/ntfy/commit/db9ca80b69978e33154dc0c22b5631fe62ac8348) Fix race condition making it possible for batches to be >batchSize - [`4a91da6`](https://github.com/binwiederhier/ntfy/commit/4a91da60dd3373c791575025901c659d0bf19203) Docs - [`978118a`](https://github.com/binwiederhier/ntfy/commit/978118a4007456b1393c68da902ab254a0764f5e) Release notes ### 📊 Changes **10 files changed** (+256 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serve.go` (+6 -0) 📝 `docs/config.md` (+13 -1) 📝 `docs/releases.md` (+5 -0) 📝 `server/config.go` (+4 -0) 📝 `server/message_cache.go` (+69 -13) 📝 `server/message_cache_test.go` (+5 -5) 📝 `server/server.go` (+2 -1) 📝 `server/server.yml` (+8 -0) ➕ `util/batching_queue.go` (+86 -0) ➕ `util/batching_queue_test.go` (+58 -0) </details> ### 📄 Description _No description provided_ --- <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:33 +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#1320
No description provided.