Top Tweets for #ObjectId
Day-67/120 Daily progress in my backend journey — here’s what I learned today:
1)Batch Size in MongoDB
MongoDB returns documents in batches, not all at once. Batch size controls how many docs are returned per network request.
2)What is Projection?
Projection controls which fields are returned in the query result.
3)Limits of MongoDB
4)Why ObjectId is not a String in MongoDB?
ObjectId is a special type in MongoDB that takes only 12 bytes while a string version would take 24 bytes.
It is more efficient because it uses half the space of a string.
In hex, 2 characters = 1 byte.
An ObjectId is made up of:
-> Timestamp
-> Machine ID & Process ID
-> Counter
Sui full node data and RPC types
A Sui full node stores multiple categories of data in its permanent store.
info
The per-epoch Sui store is beyond the scope of this topic. Sui uses the per-epoch store (resets at the start of each epoch) internally for authority and consensus operations.
Sui full nodes store the following types of data:
Transactions with associated effects and events: Sui uses a unique transaction digest to retrieve information about a transaction, including its effects and emitted events. Sui full nodes don't require the historic transaction information for basic full node operations. To conserve drive space, you can enable pruning to remove this historical data.
Checkpoints:
Sui groups committed transactions in checkpoints, and then uses those checkpoints to achieve state synchronization. Checkpoints keep transaction digests that contain additional integrity metadata. Sui Full nodes don't require data from checkpoints to execute and submit transactions, so you can configure pruning for this data as well.
Objects:
Transactions that mutate objects create new object versions. Each object has a unique pair of (objectId, version) used to identify the object. Sui full nodes don't require historic object versions to execute and submit transactions, so you can configure your full node to also prune this data.
Indexing information: A full node default configuration is to post-process the committed transactions: it indexes the committed information to enable efficient aggregation and filtering queries. For example, the indexing can be useful for retrieving all the historic transactions of a given sender, or finding all the objects owned by an address.
@EdgenTech #EdgenTech

Data Management
Managing the data on your Sui full node is critical to ensuring a healthy Sui network. This topic provides a high-level description of data management on Sui Full nodes that you can use to optimize your full node configuration. For more information about Sui full nodes, such as pruning policies and archival settings, see Run a Sui Full Node.
Basic Sui full node functionality
The minimal version of a Sui full node executes all of the transactions Sui validators commit. Sui full nodes also orchestrate the submitting of new transactions to the system:
The preceding image shows how data flows through a full node:
State sync protocol: A Sui full node performs the following to achieve state synchronization:Retrieves the information about the committed checkpoints via the p2p gossip-like protocol.
Executes the transactions locally to verify that effects match the effects certified by the quorum of the validators.
Updates the local state with the latest object values accordingly.
RPCs: A Sui full node exposes Sui RPC endpoints for querying the latest state of the system, including both the latest state metadata (such as, sui_getProtocolConfig), and the latest state object data (sui_getObject).
Transaction submission: Each Sui full node orchestrates transaction submission to the quorum of the Sui validators, and, optionally if configured, locally executes the finalized transactions (called fast path execution), which circumvents the wait for checkpoint synchronization.
@EdgenTech #EdgenTech

ref vs populate in MongoDB
ref only stores the ObjectId of another document and defines the relationship. No data is fetched.
populate uses that ObjectId to fetch the actual related document, working like a join when you need full details
Store IDs. Populate only when required

The crazy part? Most people still think “IOTA = one product.”
Nah, it’s an entire trust infrastructure.
The Trust Framework isn’t some buzzword stack, it’s five modular building blocks that already map cleanly to real-world chaos:
Identity
Hierarchies
Notarization
Gas Station
Tokenization
Each solves a pain point every builder eventually hits: proving who’s real, proving what’s true, proving what changed, paying no fees, and turning assets into programmable units.
And it’s wild how many verticals are already using pieces of it:
– TWIN for trade docs
– Impierce for global credentials
– Orobo for circular economy compliance
– ObjectID for digital twins
– Salus for mineral tokenization
All independent, all plugged into the same backbone.
All Might would’ve called this the “True Form” arc power not in one big move, but in the ability to stack moves together.
That’s literally what the Trust Framework is: composability for trust itself.
🧢 : Most blockchains shout about scale. IOTA ships infrastructure that lets entire industries move with receipts, audit trails, and zero-friction onboarding.
That’s a different league.
If you’re building anything that touches identity, assets, supply chain, compliance, or RWA…
this is the moment to actually open the docs and stop guessing.
@GiveRep @iota @TWINGlobalOrg

Day 13 of #googleKeepClone — backend ready now! did full Postman and found bugs across stack. Spent day debugging: fix route params, validation, JWT middleware, body parsing, ObjectId checks, token flows every bug — makes logical thinking stronger #WebDevelopment #BuildInPublic
One day later and I already changed this structure 😅
Replaced Response and Document schemas with one Db schema that only uses string ids. Importing ObjectId on the client side breaks.
Created a zod primitive to automatically convert MongoDB ObjectIds to strings if needed.
Day 44 - Finally got back to building my app!
Thought I would just finish my color library page but ended up structuring my zod schemas...
I now have a base schema for a color palette, then a Document schema with ids and timestamps etc. and another one for API with string ids
“All Might once said true strength isn’t loud; it’s the quiet conviction to do the right thing.”
That’s the IOTA Trust Framework real-world trust going on-chain.
Open, modular, live. This is not a whitepaper, but working code.
@iota launched the IOTA Trust Framework an open-source suite for digital trust.
Verified use cases already live:
@ImpierceTech → verifiable diplomas
@TWINGlobalOrg → digital trade docs
@HelloOrobo → product passports
@ObjectID_io → provenance twins
@salusPlatform → tokenized mineral trades
Core modules include identity, notarization, tokenization, hierarchies, and gasless UX.
Anchored to IOTA’s L1 using MOVE VM, with sub-second finality.
This isn’t vaporware. It’s decade-long R&D turning compliance-ready, open-source rails into enterprise tools.
No paywalls. No vendor lock-in. Just trust as public infrastructure.
That’s All Might’s kind of hero work building quietly while others talk loud.
Now layered with @GiveRep, every post, proof, and build earns measurable reputation.
Proof × Policy × Participation that’s the new trinity of digital trust.
10 years in, IOTA just gave Web3 its backbone.
When the noise fades, builders like this stand tall.
AllMight would approve.
@iota $iota @GiveRep ⚡

@orimdominic_ Correct. Mongoose casts values to match your schema, and not just ObjectIds.
Also does stuff like string "42" to 42, "on" to Boolean true, ISO date string to Date, etc based on your schema type.
Some think this is sneaky or counterintuitive, I think it is super convenient
If you use Mongoose and you insert a hex string in a field where you set the type to MongoDB's ObjectId, what get saved to the database is not the hex string but the ObjectId form of the hex string.
This is where it got interesting. These codes weren't just random strings. Some of them had hidden timestamps, just like a MongoDB ObjectID.
One of them pointed to March 23, 1994. Not a random date. This was the era of the early public internet and the cypherpunk culture🕵️♂️

It just hit me.
You don't need the `createdAt` field in MongoDB documents if you use the default ObjectId as your _id field type!
I also explored different ID generation strategies — and why they matter when scaling:
1️⃣ Auto-increment IDs → fast, but unsafe under load
2️⃣ UUID/ObjectIDs → long + unfriendly
3️⃣ Snowflake-style IDs → compact, time-sortable —
🔁 Something I’d definitely use next time
(4/11)
Day 9 of building an e-commerce API from scratch
Today I got my hands dirty with some solid backend stuff. I learned how to link schemas using ref and "ObjectId",
set up a proper PUT method to update products,
and added a DELETE endpoint to wipe them out when needed.
Day 8 of building an e-commerce API from scratch:
Still on the grind. Today I continued work on the products logic and making sure things are done the right way.
A short thread 🧵
silly mistake pt.1 😭,
I was trying to fetch a video by ID and kept getting the “Cast to ObjectId failed” error because I passed the ID as a string. Tried converting it still failed. Finally realized I just needed to pass the ID directly, cool and simple

@0_xAlvin @bosunwalk If you need one place to edit, you define it as a type:
type ObjectID = number;
interface MyObject {
id: ObjectID;
}
getObject(id: ObjectID);
Today I learnt that an ObjectId in mongo occupies a full 12 bytes of memory.
Context: I was optimizing db storage.
Last Seen Hashtags on Sotwe
kochoushinobu
Seen from Vietnam
Chilenoteolvida
Seen from United States
colbar
NewProfilePic
Seen from Malaysia
HappyBirthdayGraceJones
Seen from United States
게이노예
Seen from Korea
肉便器
Seen from Vietnam
mother son taboo
Seen from Indonesia
alphabrainblacklabel
Seen from United States
wholesomeblackmen
Seen from Vietnam
Most Popular Users

Elon Musk 
@elonmusk
239.4M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers

















