Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is there a maximum storage limit for a smart contract?

It's known that blockchain is not the best place to store lots of data (there is TON Storage for that, while smart contract data should generally be as small as possible). But is there a technical limit of permanent storage size for one smart contract, or a developer can theoretically grow a chain of cells indefinitely? If there is a maximum size, what is it?


This question was imported from Telegram Chat: https://t.me/tondev/45509

  
  
Posted one year ago
Votes Newest

Answers


Yes, the data should fit in the c4 register. c4 is limited to a depth of <= 512. Read more here:
https://ton.org/docs/learn/tvm-instructions/tvm-overview

If you use cells in a linear single ref tree, you are limited to 512 * 1023 = 523776 bits or near 64 KB. But if you use all cells to store data, it's a very huge tree with a lot of space. Only at the bottom layer it has 4 ** 511 cells.

1
1
Posted one year ago