Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 21, 2025

Documents new ALTER DATABASE support for compaction options added in GreptimeTeam/greptimedb#7251.

Changes

  • ALTER DATABASE syntax: Added compaction.twcs.time_window, compaction.twcs.max_output_file_size, and compaction.twcs.trigger_file_num options
  • Examples: Added SQL examples for setting and unsetting compaction options at database level
  • Localization: Updated both English and Chinese documentation

Usage

Database-level compaction options can now be modified after creation:

ALTER DATABASE db SET 'compaction.twcs.time_window'='2h';
ALTER DATABASE db SET 'compaction.twcs.max_output_file_size'='500MB';
ALTER DATABASE db SET 'compaction.twcs.trigger_file_num'='8';
ALTER DATABASE db UNSET 'compaction.twcs.time_window';

These options mirror the existing ALTER TABLE compaction support and the CREATE DATABASE options already documented.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/GreptimeTeam/greptimedb/pulls/7251
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update docs for feat: support alter database compaction options</issue_title>
<issue_description>A document change request is generated from GreptimeTeam/greptimedb#7251</issue_description>

<agent_instructions>不要修改最新稳定版的文档</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Add compaction.twcs.time_window, max_output_file_size, and trigger_file_num to ALTER DATABASE documentation
- Add examples for modifying and unsetting compaction options
- Update both English and Chinese documentation
- Add .gitignore entries for transpiled JavaScript files

Co-authored-by: fengjiachun <[email protected]>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 21, 2025

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 304dab8
Status: ✅  Deploy successful!
Preview URL: https://2380050a.greptime-docs.pages.dev
Branch Preview URL: https://copilot-update-docs-alter-db.greptime-docs.pages.dev

View logs

Copilot AI changed the title [WIP] Update documentation for database compaction options docs: add ALTER DATABASE compaction options Nov 21, 2025
Copilot AI requested a review from fengjiachun November 21, 2025 04:43
Copilot finished work on behalf of fengjiachun November 21, 2025 04:43
@fengjiachun fengjiachun requested a review from v0y4g3r November 21, 2025 06:24
@fengjiachun fengjiachun marked this pull request as ready for review November 21, 2025 06:28
@fengjiachun fengjiachun requested a review from nicecui as a code owner November 21, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs for feat: support alter database compaction options

2 participants