Repository navigation
DOCSP-36546 Scan Multiple Collections #193
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
Changes from 10 commits
a508720
2f9efbd
ada0f3e
4b725e8
a2f5b51
eddf93c
fa8bd86
e81bc1e
6f80c56
b3e46c1
55ed099
2553f13
c737f06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,13 @@ Read from MongoDB in Streaming Mode | |
| :depth: 1 | ||
| :class: singlecol | ||
|
|
||
| .. facet:: | ||
| :name: genre | ||
| :values: reference | ||
|
|
||
| .. meta:: | ||
| :keywords: change stream | ||
|
|
||
| Overview | ||
| -------- | ||
|
|
||
|
|
@@ -344,12 +351,13 @@ The following example shows how to stream data from MongoDB to your console. | |
|
|
||
| .. important:: Inferring the Schema of a Change Stream | ||
|
|
||
| When the {+connector-short+} infers the schema of a DataFrame | ||
| read from a change stream, by default, | ||
| it uses the schema of the underlying collection rather than that | ||
| of the change stream. If you set the ``change.stream.publish.full.document.only`` | ||
| option to ``true``, the connector uses the schema of the | ||
| change stream instead. | ||
| If you set the ``change.stream.publish.full.document.only`` | ||
| option to ``true``, the {+connector-short+} infers the schema of a ``DataFrame`` | ||
| by using the schema of the scanned documents. If you set the option to | ||
| ``false``, you must specify a schema. | ||
|
|
||
| Schema inference happens at the beginning of streaming, and does not take into | ||
| account collections that are created during streaming. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The information from the "Performance considerations" section from "Documentation Changes Summary" is included neither to this note, not anywhere else in the PR.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added to the section here
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should change the new text added in the PR:
I should clarify the "Performance considerations" section from from "Documentation Changes Summary", I apologize for not expressing this information more verbousely and clearly on the first attempt. The "Performance considerations" section is a subsection of the "Schema inference" section, i.e., this section talks about the performance consideration with regard to schema inference. Note also that the term "sampling" is used alongside the term "scanning" (a.k.a. "reading"): "When scanning multiple collections, each collection is sampled sequentially." When the connector infers a schema, it
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the clarification here. I think I've got it in the right spot, and adjusted the wording a bit. I put the admonition in the new "multiple collections" section and reverted the original schema inference note back to (almost) what it was previously (since that note isn't specifically about multiple collections). |
||
|
|
||
| For more information about this setting, and to see a full list of change stream | ||
| configuration options, see the | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.