Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(participant): add maxTimeMS to sample #829

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Sep 23, 2024

This adds the maxTimeMS option for the sample we have in the participant. In the past, for collections with many documents, and atlas data lake, sample could take a really long time. We want to avoid that, especially as there's no way to cancel this at the moment besides ending the chat or restarting VSCode.

We should have maxTimeMS set on all of our requests, outside of playgrounds, in our extension. Created VSCODE-617 for that.

@@ -700,7 +700,7 @@ export default class ParticipantController {
query: {},
size: amountOfDocumentsToSample,
},
{ promoteValues: false },
{ promoteValues: false, maxTimeMS: 10_000 },
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!

@Anemy Anemy merged commit c0fe7a4 into VSCODE-528-mongodb-copilot Sep 24, 2024
3 checks passed
@Anemy Anemy deleted the add-max-time-ms-for-sample branch September 24, 2024 12:42
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.

3 participants