šŸ’»
Albert's Til
GitHub
  • ė§¤ģ¼ė§¤ģ¼ ģ”°źøˆģ”© ģ„±ģž„ķ•˜źø°
    • README
    • CS
      • Network
      • HTTP
        • NO-CACHE
      • 오넘 ģ½”ė“œ
      • ORM ė„źµ¬
      • Design Pattern
        • CQRS Pattern
          • Event Sourcing and CQRS pattern
        • Builder Pattern
    • DB
      • MySQL
        • Timeline
        • Pagination
        • Index
        • Database Performance Optimization Strategies
        • B+ tree
        • MySQL Connectors VS MySQL Shell(Scripting) VS MySQL Workbench
        • MySQL Storage Engine Architecture
      • Normalization & Denormalization
      • JPA
        • @Transactional
        • Why JPA?
        • About JPA
        • N+1 Issue
        • Index
        • ElementCollection&CollectionTable
        • orphanRemoval
        • CascadeType
        • Use Subselect
        • Dynamic Instance Creation
        • Paging
        • Order
        • Spefication
        • mappedBy
      • MongoDB
        • ObjectId
      • Why MySQL?
      • ACID properties of transactions
      • Between JPA and JDBC
      • Identifiers in Hibernate/JPA
    • Java
      • Jackson de/serialize
      • Collections.singletonList() vs List.of()
      • Manage dependencies in Gradle
      • Logging Level
      • Bean Validation
      • JVM Internals
        • Threads
          • Frame
        • Shared Between Threads
          • Classloader
            • Class Loader Hierarchy
            • Loading Linking Initialization
      • Java Collection Framework
      • Annotation
      • Generic
      • 디미터 법칙
    • Spring
      • Caching
      • Spring Integration Overview
        • ThreadPollTaskExecutor
        • Messaging Bridge
        • Channel Adapter
        • Poller
        • Configuration and @EnableIntegration
        • Message Endpoints
        • Message Channels
      • HATEOAS
      • @Autowired vs Constructor Dependency Injection
      • Spring Security
        • JWT 토큰 ģ‚¬ģš©ķ•œ ģøź°€
        • OAuth 2 Login
        • OAuth 2 ģøģ¦
        • ģøź°€
        • ģøģ¦
        • PasswordEncoder
      • IoC Container
      • Filter,Interceptor,AOP,Argument Resolver
      • Spring Annotation
      • About Spring
    • Kafka
      • Error Channel
    • Infra
      • Scale Up || Scale Out
      • Docker
        • Dockerfile
        • Docker Hub Deploy
        • Command
      • Cloud ģœ ķ˜•
        • Infrastructure as a Service
        • Platform as a Service
        • Software as a Service
      • 묓중단 ė°°ķ¬
        • ģ—”ģ§„ģ—‘ģŠ¤(Nginx)
      • ģ½”ė“œ ģžė™ ė°°ķ¬
        • Technical
      • AWS EC2
        • PEM(Privacy Enhanced Mail) 키
      • AWS RDS
      • AWS S3
    • CodeSquad
      • Spring Boot Project 1주차 회고
      • Spring Boot Project 2주차 회고
      • Spirng Boot Project 3주차 회고
      • Spring Boot Project 4주차 회고
    • Foody Moody ķ”„ė”œģ ķŠø
      • Query Performance Comparison
      • HeartCount Asynchronous Issue
      • DeferredResult
      • ResponseBodyEmitter
      • SseEmitter (Spring)
      • Server-Sent Events (SSE)
      • 기술 ģŠ¤ķƒ 적용 ģ“ģœ 
      • NO-CACHE(HTTP)
      • Transactional
    • DDD
      • AggregateId
    • Test
      • RestAssured
    • Coding and Algorithmic Problems
      • 819. Most Common Word
      • 344. Reverse String
      • 125. Valid Palindrome
      • 937. Reorder Data in Log Files
    • Node
      • Async... Await...
      • Custom Transactional Decorator Challenger
    • Python
      • Python Basic Grammar
        • Comments and Input/Output
        • Variable
        • Data type
        • Operations and syntax
        • List,Tuple,Dictionary,Set
        • Function
        • Conditional statement
        • Loop
    • HTML
      • HTML Basic
      • HTML Basic Tags
      • HTML Form Tags
      • HTML Table Tags
    • CSS
      • CSS Basic
      • CSS Practice
Powered by GitBook
On this page

Was this helpful?

  1. ė§¤ģ¼ė§¤ģ¼ ģ”°źøˆģ”© ģ„±ģž„ķ•˜źø°
  2. DB
  3. MongoDB

ObjectId

The 12-byte Objectid consists of:

  • A 4-byte timestamp, representing the ObjectId's creation, measured in seconds since the Unix epoch.

  • A 5-byte random value generated once per process. This random value is unique to the machine and process

  • A 3-byte incremeting counter, initialized to a random value.

For timestamp and counter values, the most significant bytes appear first in byte sequence(big-endian). This is unlike other BSON values, where the least significant bytes appear first (little-endian).

  • BSON [bee Ā· sahn], short for BinĀ­ary JSON, is a binĀ­ary-enĀ­coded seriĀ­alĀ­izĀ­aĀ­tion of JSON-like docĀ­uĀ­ments. Like JSON, BSON supĀ­ports the emĀ­bedĀ­ding of docĀ­uĀ­ments and arĀ­rays withĀ­in othĀ­er docĀ­uĀ­ments and arĀ­rays. BSON also conĀ­tains exĀ­tenĀ­sions that alĀ­low repĀ­resĀ­entĀ­aĀ­tion of data types that are not part of the JSON spec. For exĀ­ample, BSON has a Date type and a BinData type.

Last updated 2 years ago

Was this helpful?