'How to define chaincode assets for highly scalable system
I am trying to define chaincode assets to support millions of records, but I think below structure is not scalable to support more than few thousands of record.
/ Struct used to return
type RoamingAgreement struct {
UUID string `json:"uuid,omitempty"`
ORG1_ID string `json:"org1_id,omitempty"`
ORG2_ID string `json:"org2_id,omitempty"`
STATUS string `json:"status,omitempty"`
}
type ListOfArticles struct {
UUID string `json:"uuid"` // name for the uuid
DOCUMENT_NAME string `json:"document_name"` // name for the document_name
STATUS string `json:"status,omitempty"`
articles []ARTICLE `json:"articles"` // name for the articles
}
type ARTICLE struct {
id string `json:"id"` // name for the id
status string `json:"status,omitempty"`
variables []VARIABLE `json:"variables"` // name for the variables
variations []VARIATION `json:"variations"` // name for the variations
customTexts []CUSTOMTEXT `json:"customText"` // name for the Custom Text
stdClauses []STDCLAUSE `json:"stdClause"` // name for the Standard Clauses
}
type VARIABLE struct {
id string `json:"id"` // name for the id
value string `json:"value"` // name for value
}
type VARIATION struct {
id string `json:"id"` // name for the id
value string `json:"value"` // name for value
}
type CUSTOMTEXT struct {
id string `json:"id"` // name for the id
value string `json:"value"` // name for value
}
type STDCLAUSE struct {
id string `json:"id"` // name for the id
value string `json:"value"` // name for value
}
Does anyone can help me on this to design a highly scalable system ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
