Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to fields in MongoDB Oplog

2026-05-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

{

Ts: Timestamp (1446011584, 2)

"h": NumberLong ("1687359108795812092")

"v": 2

"op": "I"

"ns": "test.nosql"

"o": {"_ id": ObjectId ("563062c0b085733f34ab4129"), "name": "mongodb", "score": "100"}

}

Ts: operation time, current timestamp + counter, counter is reset every second

H: globally unique identification of the operation

V:oplog version Information

Op: type of operation

I: insert operation

U: update operation

D: delete operation

C: execute commands (such as createDatabase,dropDatabase)

N: null operation, special purpose

Ns: the collection for which the operation is directed

O: operation content, if it is an update operation

O2: query condition for operation. Only the update operation contains this field.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

  • Some basic knowledge about MySQL transactions

    Let's talk about the basics of MySQL transactions. The secret of the text is that it is relevant to the topic. So, no gossip, let's go straight to the following, I believe you will benefit from reading this article on the basics of MySQL affairs. 1. Basic syntax of transactions

    12
    Report