Skip to content

DOCS-133 document applyOps #86

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

Merged
merged 3 commits into from
Jul 25, 2012
Merged

DOCS-133 document applyOps #86

merged 3 commits into from
Jul 25, 2012

Conversation

epc
Copy link
Contributor

@epc epc commented Jul 24, 2012

flesh out documentation for applyOps

@epc
Copy link
Contributor Author

epc commented Jul 24, 2012

Updated with suggested revisions.
One problem: the ..writelock and ..see-also statements kept getting included in the code block until I unindented them.

@tychoish
Copy link
Contributor

yeah, the writelock/see lines are both comments that shouldn't be visable at all. so that's fine.


:dbcommand:`applyOps` is an internal command that supports sharding
functionality.
functionality. It applies a command object entry from an :term:`oplog` against a :term:`collection`.
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, I didn't catch this earlier, but I think we can just say "It applies entries from an oplog," I'm not sure "a command object entry," makes sense.

If we want to be really extravagant, we could also say, "It applies oplog entries passed to the command in the <operations> array, to a database, or collection if you specify the ns option."

Correspondingly, we should probably change the "array of operations to perform," to "array of operations to apply."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was my initial understanding, but on re-reading the code there's
actually no mention of an oplog at all. It takes oplog entries but applies
them against a collection, used to replay the oplog on shards or replica
sets.

ApplyOps itself is a wrapper around applyOperation_inlock.

On Tue, Jul 24, 2012 at 11:03 PM, Sam Kleinman <
[email protected]

wrote:

:dbcommand:`applyOps` is an internal command that supports sharding
  • functionality.
  • functionality. It applies a command object entry from an
    :term:oplog against a :term:collection.

sorry, I didn't catch this earlier, but I think we can just say "It
applies entries from an oplog," I'm not sure "a command object entry,"
makes sense.

If we want to be really extravagant, we could also say, "It applies oplog
entries passed to the command in the <operations> array, to a
database, or collection if you specify the ns option."

Correspondingly, we should probably change the "array of operations to
perform," to "array of operations to apply."


Reply to this email directly or view it on GitHub:
https://github.com/mongodb/docs/pull/86/files#r1232017

-ed costello
@epc https://twitter.com/epc / +19179752073

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is consistent with the change that I suggested, but I could be wrong.

@epc
Copy link
Contributor Author

epc commented Jul 25, 2012

Added suggested changes.

@tychoish tychoish merged commit 3bf5b0b into mongodb:master Jul 25, 2012
@epc epc deleted the docs133-applyops branch December 22, 2014 19:06
Yingminzhou pushed a commit to mongodb-china/docs that referenced this pull request Dec 10, 2016
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
* DCOSP-29004 outdate version info

* Review feedback
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 6, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 16, 2025
* (DOCSP-26581) Adds release notes and updates version

* Sets submodule to v1.3.0
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 24, 2025
* fix line blocks and changelog link
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 24, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 2, 2025
* update compat matrix

* redirects
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 11, 2025
)

* DOCSP-12565 Limit number of simultaneous queries by a single tenant

* Update source/query/query-data-lake.txt

Co-authored-by: Melissa Mahoney <[email protected]>

* DOCSP-12565 fixes

Co-authored-by: Melissa Mahoney <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 15, 2025
* DOCSP-45596-fix-text-overlap

* fix code block

* suggestions
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 15, 2025
* DOCSP-45596-fix-text-overlap

* fix code block

* suggestions

(cherry picked from commit 35c8174)
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 15, 2025
* DOCSP-45596-fix-text-overlap

* fix code block

* suggestions

(cherry picked from commit 35c8174)
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 17, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 21, 2025
(cherry picked from commit ce4b7d9)

Co-authored-by: Stephanie <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 22, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 23, 2025
* DOCSP-42732: qs

* fix

* wip

* remove action

* NR suggestion

* DOCSP-42732: qs download

* wip

* adapt for sinatra

* vale fix

* snooty landing page

* MW PR fixes 1

* DOCSP-42733: atlas prep qs

* MW PR fixes 1

* DOCSP-42735: configure cxn

* small fix - vale

* JS PR fixes 1

* DOCSP-44008: read/write sinatra quickstart

* fixes

* NR PR fixes 1

* DOCSP-43961: rails qs

* vale

* ordering

* small fix

* MW PR fixes 1

* small fixes

* MW PR fixes 2

* DOCSP-44647: add to existing app

* fix vale action

* vale fixes

* depth

* MW PR fixes 1

* fixes

* DOCSP-42745: interact with data drawer

* tags

* fix vale action

* remove extra word

Co-authored-by: Nora Reidy <[email protected]>

* DOCSP-42753: specify query part 1

* vale

* title

* code edits

* MW PR fixes 2

* DOCSP-44849: modify results

* vale

* JS PR fixes 1

* fix

* fix

* list fixes

* MW PR fixes 1

* DOCSP-44954: scoping

* add landing page

* link

* vale

* highlighting

* DOCSP-44821: specify a query pt 2

* MR PR fixes 1

* wip

* wip

* wip

* small fixes

* DOCSP-42767 Aggregation (#57)

* DOCSP-42774: transactions

* vale

* link text

* MW PR fixes 1

* MR PR fixes 1

* DOCSP-45306: model data drawer

* DOCSP-45330: inheritance (WIP)

* MR PR fixes 2

* try using roles

* wip

* vale

* add label

* fixes

* fix

* small fixes - MW

* DOCSP-45358: documents

* fix

* wip

* wip

* DR tech review 1

* page fmt

* page fmt

* SA PR fixes 1

* MR PR fixes 1

* DR small fix

Co-authored-by: Dmitry Rybakov <[email protected]>

* DOCSP-45360: nested attributes (#71)

* DOCSP-45360: nested attributes

* vale + fixes

* fixes

* NR PR fixes 1

* DOCSP-45362: text search (#72)

* DOCSP-45362: text search

* wip

* vale

* MM PR fixes 1

* DOCSP-45436 Field Behaviors page (#68)

* DOCSP-45363: validation (#73)

* DOCSP-45363: validation

* keywords

* wip

* SA PR fixes 1

* DOCSP-44794 Field Types (#69)

* DOCSP-45357 Sharding Configuration (#76)

* DOCSP-42762: Indexes (#74)

* DOCSP-45367 Associations pt. 1 (#79)

* DOCSP-45368: Persistence Configuration (#77)

* DOCSP-45361: callbacks (#75)

* DOCSP-45361: callbacks

* wip

* wip

* wip

* NR PR fixes 1

* DOCSP-45364: CRUD pt 1 (#81)

* checkpoint

* checkpoint 2

* woohoo first pass

* indent

* Edits

* updates

* vale chekcs

* RR PR fixes 1

* fix code file

* code fixes

* RM PR fixes 1

---------

Co-authored-by: rustagir <[email protected]>

* DOCSP-45110: queries subsections (#80)

* DOCSP-45110: queries misc sections

* wip:

* vale

* MR PR fixes 1

* GM PR fixes 1

* DOCSP-46072 Associations part 2 (#82)

* DOCSP-46394: CRUD remaining sections (#83)

* DOCSP-46394: CRUD remaining sections

* vale fixes

* JS PR fixes 1

* DOCSP-46213: bump to rails 8 and remove old tuts (#84)

* DOCSP-45356: i&h + code doc (#86)

* DOCSP-45356: i&h + code doc

* remove contributing

* vale fixes

* link fix

* vale fixes + RM comment

* DOCSP-42770: release notes/whats new (#87)

* DOCSP-42770: release notes/whats new

* fixes

* fixes

* DOCSP-42773: api links (#88)

* DOCSP-42773: api links

* fix

* link fixes

* DOCSP-42772: compatibility (#90)

* DOCSP-42772: compatibility

* small fix

* small fix

* SA PR fixes 1

* delete files for old build system

* column width adjustment

* DOCSP-45366 Encryption (#89)

* DOCSP-42741: config pages (#91)

* DOCSP-42741: config

* wip

* wip

* some vale fixes

* RM PR fixes 1

* small fix

* DOCSP-46555: rails integration (#92)

* wip

* DOCSP-46555: rails integration

* RM PR fixes 1

* DOCSP-45359 External Resources (#94)

* add additional resources page

* edits

* feedback

* DOCSP-42743 Collection config (#95)

* DOCSP-42730: landing page (#96)

* DOCSP-42730: landing page

* MW PR fixes 1

* small fix

* small fix

* small fix

* DOCSP-46121: cleanup (#97)

* cleanup

* copy compat action

* redirects

* MW PR fixes 1

* add index section

* change vs in redirects

---------

Co-authored-by: Nora Reidy <[email protected]>
Co-authored-by: Jordan Smith <[email protected]>
Co-authored-by: Dmitry Rybakov <[email protected]>
Co-authored-by: Maya Raman <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
…or v10.0 (#112)

* (DOCSP-20701) Create v10 branch (#84)

* (DOCSP-20565) v10 partitioners (#85)

* (DOCSP-20565) v10 partitioners

* (DOCSP-20566) v10 configuration improvements (#86)

* (DOCSP-20566) v10 configuration improvements

* Revert "(DOCSP-20566) v10 configuration improvements (#86)" (#91)

This reverts commit 5d0440a2989401185f83cf296a37413e5df35c5e.

* Re-merge DOCSP-20566 (#92)

* (DOCSP-20566) v10 configuration improvements

* (DOCSP-21084) Support for pushed filters (#93)

* (DOCSP-21084) Support for pushed filters

* (DOCSP-21713) Subdomain consolidation (#95)

* (DOCSP-21085) Structured streaming  (#90)

* (DOCSP-21714) Highlight v10 connector on landing page (#96)

* (DOCSP-21714) Highlight v10 on landing page

* (DOCSP-21416) Update connector api, version constant, and release notes for v10 (#94)

* (DOCSP-21416) Finalize v10 docs

* (DOCSP-21416-fix) Fix required versions (#98)

* re-add structured streaming, removed by mistake (#99)

* (DOCSP-21715) Remove RDD support (#97)

* (DOCSP-21715) Remove RDD support

* Use actual announcement blog link, dochub not working (#102)
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
This reverts commit 5d0440a2989401185f83cf296a37413e5df35c5e.
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 25, 2025
* DOCSP-42308: Deployment and connection string (#52)

* DOCSP-42308: Deployment and connection string

* add file

* DOCSP-42306: Get Started and Install (#51)

* Get Started and Install

* build

* edits

* wording

* troubleshooting file

* version

* JS feedback

* DOCSP-42310: Connect to MongoDB (#53)

* DOCSP-42310: Connect to MongoDB

* edits

* code highlight

* reduce scroll

* DOCSP-42305: Index page + repo cleanup (#56)

* DOCSP-42321: Insert landing page (#55)

* DOCSP-42329: Retrieve data (#54)

* DOCSP-42329: Retrieve data

* edits

* MM feedback

* DOCSP-42321: Insert Documents (#61)

* DOCSP-42328: Specify a query (#57)

* DOCSP-42328: Specify a query

* link fix

* edit

* JS feedback

* output

* RL feedback

* DOCSP-42330: Projection guide (#58)

* DOCSP-42330: Projection guide

* edits

* add constant

* MM fix

* DOCSP-42323: Replace (#62)

* DOCSP-42331: Specify docs to return (#64)

* DOCSP-42331: Specify docs to return

* toc

* MM feedback

* code output

* DOCSP-42322: Update (#63)

* DOCSP-42332: Count documents (#66)

* DOCSP-42332: Count documents

* edits

* build errors

* RR feedback

* scroll

* build error

* DOCSP-42312 Create a MongoDB Client (#59)

* DOCSP-42312 Create a MongoDB Client

* on TOC

* retry TOC

* build

* api doc

* fix links

* code fix

* review comments

* test

* test

* fix snooty

* merge error

* DOCSP-42324: Delete (#65)

* DOCSP-42325: Bulk Write (#68)

* DOCSP-42317: Databases and Collections (#77)

* DOCSP-42333: Distinct values (#67)

* DOCSP-42333: Distinct values

* edits

* build error

* RR feedback

* DOCSP-42335: Change streams (#69)

* DOCSP-42335: Change streams

* code

* edits

* fixes

* toc

* MW feedback

* MW feedback

* fix

* DOCSP-42311: Run a Command (#75)

* DOCSP-42311: Run a Command

* edits

* code edits

* MM feedback

* JY feedback

* DOCSP-42318: Time Series (#78)

* DOCSP-42326: GridFS (#72)

* DOCSP-42342: Aggregation (#71)

* DOCSP-42342: Aggregation

* edits

* code imports

* RR feedback

* import fixes

* JY feedback

* DOCSP-42316: Stable API (#81)

* DOCSP-42336: Cluster monitoring (#73)

* DOCSP-42336: Cluster monitoring

* edits

* fixes, code edit

* MM feedback

* remove unused imports

* fix indent

* DOCSP-42341: Atlas Search Indexes (#82)

* Uncomment link to compat tables on landing page (#84)

* DOCSP-40287: Read landing page (#85)

* DOCSP-42343: Secure Your Data + Authentication Mechanisms (#83)

* DOCSP-42319: Read and write settings (#79)

* DOCSP-42319: Read and write settings

* edits

* code comments

* MW feedback

* code edits

* JY feedback

* imports

* edits

* JY feedback 2

* build

* DOCSP-42338 Single Field Indexes (#70)

* DOCSP-42338 Single Field Indexes

* new content

* first draft

* fix toc

* try section heading

* fixes

* fix links

* ref fix

* review comments

* add helper method import

* helper method explanation

* edit helpers section

* edicts

* edit

* edit out helpers

* edict copy

* fix database

* unnecessary imports

* DOCSP-42339 Compound Indexes (#74)

* DOCSP-42339 Compound Indexes

* toc

* fix examples

* 1 review comment

* api comment

* spacing

* remove helpers

* fix scroll

* edits

* edit output spacing

* DOCSP-42314: Enable TLS (#88)

* DOCSP-42314: Enable TLS

* edits

* code comments

* intro edit

* DOCSP-42337: Optimize Queries with Indexes (#92)

* DOCSP-42349: Transactions (#89)

* DOCSP-42349: Transactions

* edits

* JS feedback

* JY feedback

* DOCSP-42340 Multikey Index (#76)

* DOCSP-42340 Multikey Index

* fixes

* multikey index link

* text fix

* internal review comments

* remover helpers

* edits

* uri

* DOCSP-42313 Connection Targets (#80)

* DOCSP-42313 Connection Targets

* toc

* fixes

* code fix

* small change

* sode file endline spacing

* review edits

* comment out connection option page

* Correct connect section TOC

* DOCSP-42334: Observables (#86)

* DOCSP-42334: Observables

* edits

* fix error

* MM feedback

* edits

* word

* MM feedback 2

* edit

* build

* JY feedback

* JY feedback 2

* edit

* DOCSP-24494: Atlas search section (#90)

* DOCSP-24494: Atlas search section

* edits

* imports

* admonitions

* code output

* rename headers

* MR feedback

* edits

* JY feedback

* DOCSP-42346: Upgrade driver (#91)

* DOCSP-42346: Upgrade driver

* edits

* MW feedback

* edits, link fixes

* MW final feedback

* JY feedback

* DOCSP-45354: TOC labels (#94)

* add labels

* LM feedback

* DOCSP-45348: Cleanup (#93)

* DOCSP-45348: Cleanup

* edits

* TODOs

* add back in-use encryption

* edits

* sharedinclude fixes

* fix link

* RR feedback

* staging link

* fixes

---------

Co-authored-by: Michael Morisi <[email protected]>
Co-authored-by: lindseymoore <[email protected]>
Co-authored-by: Maya Raman <[email protected]>
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.

2 participants