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
What is the best way to store the "who follows who" data with TON smart contracts?

Suppose there is a web3 blog platform where people follow specific writers. Each follower has its own smart contract. Usually data such as "X follows Y" would go to a database, but in web3 we want it to be decentralized and on-chain. What is the best way to store such information?


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

  
  
Posted one year ago
Votes Newest

Answers


There may be several ways to implement such logic.
If each subscriber has his own smart contact, you can simply save a list of his subscriptions in the data of this contract. But note that in this case, as the number of subscriptions becomes bigger, all operations with them will become quite expensive.

1
1
Posted one year ago
Edited one year ago
Daniil Sedov
233 × 6 Administrator
15K Views
1 Answer
one year ago
one year ago
Tags