Skip to content

Conversation

@radoslawszulgo
Copy link
Collaborator

Documented the procedure for migrating Persistent Query Settings between clusters, including export and import steps with examples.

Documented the procedure for migrating Persistent Query Settings between clusters, including export and import steps with examples.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new migration guide for Persistent Query Settings, providing step-by-step instructions for transferring query settings between MongoDB clusters to maintain consistent query performance during migrations.

  • Added comprehensive migration documentation with export and import procedures
  • Included practical examples showing both representativeQuery and queryShapeHash approaches
  • Provided sample JSON output and MongoDB commands for real-world implementation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"queryShapeHash": "8B401B2B",
"representativeQuery": {
"find": "users",
"filter": { "signup_date": { "$gte": new Date("2024-01-01T00:00:00.000Z") } },
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSON example contains new Date() which is JavaScript syntax, not valid JSON. In actual JSON output, this would be an ISODate string or timestamp object. Consider showing the actual JSON format that would be exported.

Suggested change
"filter": { "signup_date": { "$gte": new Date("2024-01-01T00:00:00.000Z") } },
"filter": { "signup_date": { "$gte": "2024-01-01T00:00:00.000Z" } },

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added a note regarding version compatibility for migration.
Updated examples in the Persistent Query Settings documentation to reflect changes in query structure and settings.
@radoslawszulgo
Copy link
Collaborator Author

Examples and commands verified.

@nastena1606
Copy link
Collaborator

Why is the doc in reference? It's a usage instruction, not a reference material from my perspective. Upstream has it in reference too, but maybe they are wrong?

Added a glossary item
Improved formatting
@nastena1606 nastena1606 temporarily deployed to radoslawszulgo-pqs - plm-docs PR #11 November 20, 2025 16:18 — with Render Destroyed
@nastena1606 nastena1606 merged commit 8be40ea into main Nov 24, 2025
2 checks passed
@nastena1606 nastena1606 deleted the radoslawszulgo-pqs branch November 24, 2025 08:19
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.

4 participants