Skip to main content
Log in

Handling conditional queries and data storage on Hyperledger Fabric efficiently

  • Published:
World Wide Web Aims and scope Submit manuscript

Abstract

As a popular consortium blockchain platform, Hyperledger Fabric has received increasing attention recently. When executing transactions on such platform, it usually costs a lot of time and hardly to achieve high efficiency. Although efficiently handling transactions can be leveraged to support various use-cases, it presents significant challenges as data on Hyperledger Fabric is organized on file-system and exposed via limited API. We tackle the problem in two ways: conditional queries and data storage. In this paper, we propose the following novel methods. To improve the performance of conditional queries on Hyperledger Fabric, we use all attributes of the query to create composite keys before executing it. In order to achieve further performance improvements, we build an index called AUP in the second method, where we also study the update of AUP during transactions. To speed up data storage on Hyperledger Fabric, We create a cache for the data in the block header. The extensive experiments conducted on the real-world dataset demonstrate that the proposed methods can achieve high performance in terms of efficiency and memory cost. Finally, We implement a prototype system.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., De Caro, A., Enyeart, D., Ferris, C., Laventman, G., Manevich, Y., et al.: In: Proceedings of the Thirteenth EuroSys Conference, p 30. ACM (2018)

  2. Baliga, A., Solanki, N., Verekar, S., Pednekar, A., Kamat, P., Chatterjee, S.: In: Crypto Valley Conference on Blockchain Technology, CVCBT 2018, Zug, Switzerland, June 20–22, 2018, pp. 65–74 (2018). https://doi.org/10.1109/CVCBT.2018.00013

  3. Couchdb. https://couchdb.apache.org/.Lastaccessed10Jun2019

  4. Croman, K., Decker, C., Eyal, I., Gencer, A.E., Juels, A., Kosba, A., Miller, A., Saxena, P., Shi, E., Sirer, E.G., et al.: In: International Conference on Financial Cryptography and Data Security, pp. 106–125. Springer (2016)

  5. Dinh, T.T.A., Wang, J., Chen, G., Liu, R., Ooi, B.C., Tan, K.L.: In: Proceedings of the 2017 ACM International Conference on Management of Data, pp. 1085–1100. ACM (2017)

  6. Dinh, T.T.A., Liu, R., Zhang, M., Chen, G., Ooi, B.C., Wang, J.: Untangling blockchain: a data processing view of blockchain systems. IEEE Trans. Knowl. Data Eng. 30(7), 1366 (2018)

    Article  Google Scholar 

  7. Ethereum. https://www.ethereum.org/.Lastaccessed10Jun2019

  8. Gao, K., Liu, Y., Xu, H., Han, T.: In: Blockchain and Trustworthy Systems–First International Conference, BlockSys 2019, Guangzhou, China, December 7–8, 2019, Proceedings, pp. 648–661 (2019). https://doi.org/10.1007/978-981-15-2777-7_53

  9. Gervais, A., Karame, G.O., Wüst, K., Glykantzis, V., Ritzdorf, H., Capkun, S.: In: Proceedings of the 2016 SIGSAC Conference on Computer and Communications Security, pp. 3–16. ACM (2016)

  10. Gorenflo, C., Lee, S., Golab, L., Keshav, S.: CoRR arXiv:1901.00910 (2019)

  11. Gupta, H., Hans, S., Aggarwal, K., Mehta, S., Chatterjee, B., Jayachandran, P.: In: IEEE 34th International Conference on Data Engineering (ICDE), pp. 1489–1494. IEEE (2018)

  12. Gupta, H., Hans, S., Mehta, S., Jayachandran, P.: In: IEEE 11th International Conference on Cloud Computing (CLOUD), pp. 294–301. IEEE (2018)

  13. HistoryDB. https://github.com/hyperledger/fabric/tree/master/core/

  14. Hyperledger fabric. https://www.hyperledger.org/projects/fabric.Lastaccessed10Jun2019

  15. Kang, H., Dai, T., Jean-Louis, N., Tao, S., Gu, X.: In: 2019 49th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), pp. 543–555 (2019). https://doi.org/10.1109/DSN.2019.00061

  16. LevelDB. https://github.com/syndtr/goleveldb/

  17. Lin, I.C., Liao, T.C.: A survey of blockchain security issues and challenges. IJ Network Secur. 19(5), 653 (2017)

    Google Scholar 

  18. Lin, I., Liao, T.: A survey of blockchain security issues and challenges. International Journal of Network Security 19(5), 653–659 (2017)

    Google Scholar 

  19. Omohundro, S.: Cryptocurrencies, smart contracts, and artificial intelligence. AI Matters 1(2), 19 (2014)

    Article  MathSciNet  Google Scholar 

  20. Parity. https://www.parity.io/.Lastaccessed10Jun2019

  21. Pongnumkul, S, Siripanpornchana, C, Thajchayapong, S.: In: 2017 26th International Conference on Computer Communication and Networks (ICCCN), pp. 1–6. IEEE (2017)

  22. Sharma, A., Schuhknecht, F.M., Agrawal, D., Dittrich, J. CoRR arXiv:1810.13177 (2018)

  23. StateDB. https://github.com/hyperledger/fabric/tree/master/core/ledger/

  24. Thakkar, P., Nathan, S., Viswanathan, B.: In: IEEE 26th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), pp. 264–276. IEEE (2018)

  25. Vukolić, M.: In: International Workshop on Open Problems in Network Security, pp. 112–125. Springer (2015)

  26. Yan, T., Chen, W., Zhao, P., Li, Z., Liu, A., Zhao, L.: In: WISE, Lecture Notes in Computer Science, vol. 11881, pp. 48–62. Springer (2019)

  27. Zhang, X., Poslad, S.: In: IEEE International Conference on Communications (ICC), pp. 1–6. IEEE (2018)

  28. Zhang, X., Poslad, S., Ma, Z.: In: IEEE Global Communications Conference (GLOBECOM), pp. 1–7. IEEE (2018)

  29. Zheng, Z., Xie, S., Dai, H., Chen, X., Wang, H.: In: IEEE International Congress on Big Data (BigData Congress), pp. 557–564. IEEE (2017)

Download references

Acknowledgements

This work was supported by the National Natural Science Foundation of China (GrantNo. 61572335,61572336, 61902270), and the Major Program of Natural Science Foundation, Educational Commission of Jiangsu Province, China (GrantNo. 19KJA610002), and the Natural Science Foundation, Educational Commission of Jiangsu Province, China (Grant No.19KJB520052, 19KJB520050), and the Priority Academic Program Developmentof Jiangsu Higher Education Institutions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lei Zhao.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article belongs to the Topical Collection: Special Issue on Web Information Systems Engineering 2019

Guest Editors: Reynold Cheng, Nikos Mamoulis, and Xin Huang

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yan, T., Chen, W., Zhao, P. et al. Handling conditional queries and data storage on Hyperledger Fabric efficiently. World Wide Web 24, 441–461 (2021). https://doi.org/10.1007/s11280-020-00844-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11280-020-00844-5

Keywords

Navigation