Пост
Поделитесь своими знаниями.

Storage Sharding and Data Indexing
Problem this solves: Apps slow down because they lump too much into single large objects.
What you’ll learn:
How to shard storage
Dynamic fields as scalable indexes
Trade-offs of fine vs coarse objects
Step-by-step: Sharding NFT collections
Root Collection object (shared).
Dynamic fields for each NFT.
Retrieval by ID → no scanning large lists.
- NFT Ecosystem
Storage sharding and indexing help avoid bottlenecks by splitting large objects into smaller, more manageable ones. Instead of cramming everything into a single shared object (which forces consensus overhead), you shard storage into multiple objects. For example, in an NFT collection, a **Root Collection** acts as the anchor, while each NFT is stored as its own object via **dynamic fields**. This way, retrieving an NFT by ID is direct and efficient, without scanning a huge list. **Trade-offs:** * **Fine-grained objects** = better scalability, but more objects to manage. * **Coarse-grained objects** = simpler design, but slower as they grow. In practice, sharding ensures apps stay fast even with thousands or millions of entries.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
Заработай свою долю из 1000 Sui
Зарабатывай очки репутации и получай награды за помощь в развитии сообщества Sui.

- ... SUIDpodium.js+181
- ... SUITucker+165
- ... SUIGifted.eth+149
- ... SUIacher+113
- ... SUIcasey+88
- ... SUIMiniBob+65
- ... SUItheking+55
- Почему BCS требует точного порядка полей для десериализации, когда структуры Move содержат именованные поля?55
- «Ошибки проверки нескольких источников» в публикациях модуля Sui Move — автоматическое устранение ошибок45
- Сбой транзакции Sui: объекты, зарезервированные для другой транзакции49
- Ошибка Sui Move — невозможно обработать транзакцию Не найдено действительных газовых монет для транзакции315
- Как максимизировать прибыль, держа SUI: стейкинг и ликвидный стейкинг110