Physical representation
物理表現
While it’s correct to think of a single list of papers in PaperNet – org.papernet.papers – lists are best implemented as a set of individual Fabric states, whose composite key associates the state with its list. In this way, each state’s composite key is both unique and supports effective list query.
PaperNetで手形の一つのリストを考えるのが正しい一方で、「org.papernet.papers 」リストが、個別のファブリック状態のセットとして実装されます。その複合キーがそのリストを持つ状態と結び付けます。このようにして、それぞれの状態の複合キーは共にユニークであって、そして効果的なリスト検索を支援します。
Representing a list of PaperNet commercial papers as a set of distinct Hyperledger Fabric states
別のハイパー元帳ファブリック状態のセットとして PaperNet 商業手形のリストを表現
Notice how each paper in the list is represented by a vector state, with a unique composite key formed by the concatenation of org.papernet.paper, Issuer, and Paperproperties. This structure is helpful for two reasons:
org.papernet.paper発行者と手形特性の連接によって形成されるユニークな複合キーで、リストでの各手形がどのようにベクトル状態によって表現されるか気付いてください。 この構造は2つの理由で助けになります:
l It allows us to examine any state vector in the ledger to determine which list it’s in, without reference to a separate list. It’s analogous to looking at sets of sports fans and identifying which team they support by the color of the shirt they are wearing. The sports fans self-declare their allegiance; we don’t need a list of fans.
別のリスト参照することなく、それがどのリストにあるか決定するために元帳で我々にどんな状態ベクトルも調べることを可能にします。 それはスポーツファンのセットを見て、そして彼らが身につけているシャツの色によって彼らがどのチームをサポートするかについて特定することに類似しています。 スポーツファンは彼らの忠誠を自分で宣言します;我々はファンのリストを必要としません。
l Hyperlegder Fabric internally uses a concurrency control mechanism to update a ledger, such that keeping papers in separate state vectors vastly reduces the opportunity for shared-state collisions. Such collisions require transaction re-submission, complicate application design, and decrease performance.
ハイパー元帳ファブリックは、非常に別個の状態ベクトルで文書を保持することは共有される状態の衝突の機会を減らすように、内部である元帳を更新するためにある一致管理メカニズムを使います。 このような衝突は取引再提出、複雑なアプリケーション設計を必要として、そしてを減少させます。
This second point is actually a key take-away for Hyperledger Fabric; the physical design of state vectors is very important to optimum performance and behaviour. Keep your states separate!
この2番目のポイントは実際は ハイパー元帳ファブリックのための重要な持ち帰りです。;状態ベクトルの物理的設計性能とふるまいの最適化のために重要です。あなたの状態を分離しておいてください!
=========================
インターネット・コンピュータランキング
=========================
ネットサービスランキング
=========================