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 it feasible to sort 50 000 objects on-chain?

Suppose I need to store 50 000 objects and have the ability to sort them (e.g., find an object with the minimal value of some parameter). Is it possible and reasonable to do that on-chain, or does that require an off-chain backend?


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

  
  
Posted one year ago
Votes Newest

Answers


Performing complex calculations on-chain can be expensive, so if there is
such an opportunity, it is better to move these calculations to the off-chain backend. Ideally, if complex calculations are performed off-chain, in a smart contract it is enough only to check the correctness of these calculations.

  
  
Posted one year ago
Daniil Sedov
219 × 6 Administrator
13K Views
1 Answer
one year ago
one year ago
Tags