Data storage in multichain

+1 vote

I have two questions regarding data store in multichain..

When i publish data on streams using publishfrom mystream address key value..i get a transaction id.

1) Is the transaction data i.e (transaction object which is stored in block) stored in "mystream" along with the key value pair ? or only the value is stored in "mystream" which is mapped to key and the transaction object is stored in some other global blockchain storage?

asked May 30, 2017 by anonymous

1 Answer

0 votes
When you talk about being "stored in a stream" I'll assume you're really asking whether nodes which are subscribed to that stream keep an additional copy of that data item. Because nodes which aren't subscribed to a stream don't do anything special with the stream information, so from their perspective it's just sitting their in the blockchain.

If that's the case, then the answer is that any data items smaller than 256 bytes are cached in the "wallet database" of nodes which are subscribed to the stream, whereas any larger items are only kept as a pointer to the data's position in the blockchain on disk.
answered May 30, 2017 by MultiChain
Maximum size of data that can be stored in a stream
...