Skip to main content

An Optimized Solution for Highly Contended Transactional Workloads

  • Conference paper
  • First Online:
Dependable Software Engineering. Theories, Tools, and Applications (SETTA 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14464))

  • 217 Accesses

Abstract

High contention frequently explodes in E-commerce scenario when promotions are held. However, modern multi-core main-memory databases cannot achieve ideal performance under high contention. Transactions contending for the same resources must be executed serially in traditional architecture to guarantee correctness, which severely chokes database management systems. In this paper, we propose to optimize the transaction processing scheme for highly contended E-commerce workloads. First, we analyze the characteristics of these workloads in detail. Second, we design to filter ineffective operations at IO layer instead of sending them to executing layer, considering the limited number of items involved in the promotion. Third, we make out a homogeneous operation merging scheme to share database execution resources, e.g., locks, and improve parallelization. We implement a prototype, Filmer, to demonstrate our idea. Filmer launches filtering and merging for contended transactions to make full use of system resources and improve parallelization. Extensive experiments show that filtering and merging improve the throughput by up to 1.95\(\times \) and 2.55\(\times \) respectively.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Alomari, M., Cahill, M., Fekete, A., Rohm, U.: The cost of serializability on platforms that use snapshot isolation. In: ICDE, pp. 576–585. IEEE (2008)

    Google Scholar 

  2. Bernstein, P.A., Hadzilacos, V., Goodman, N.: Concurrency Control and Recovery in Database Systems. Addison-Wesley, Boston (1987)

    Google Scholar 

  3. Candea, G., Polyzotis, N., Vingralek, R.: Predictable performance and high query concurrency for data analytics. VLDB 20(2), 227–248 (2011)

    Article  Google Scholar 

  4. Council, T.P.P.: TPC-C benchmark (1992). https://www.tpc.org/tpcc/

  5. DeCandia, G., et al.: Dynamo: Amazon’s highly available key-value store. In: SOSP, pp. 205–220 (2007)

    Google Scholar 

  6. Faleiro, J.M., Abadi, D.J.: Rethinking serializable multiversion concurrency control. VLDB 8(11), 1190–1201 (2015)

    Google Scholar 

  7. Giannikis, G., Alonso, G., Kossmann, D.: SharedDB: killing one thousand queries with one stone. VLDB 5(6), 526–537 (2012)

    Google Scholar 

  8. Huang, G., et al.: X-Engine: an optimized storage engine for large-scale e-commerce transaction processing. In: SIGMOD, pp. 651–665 (2019)

    Google Scholar 

  9. Makreshanski, D., Giannikis, G., Alonso, G., Kossmann, D.: MQJoin: efficient shared execution of main-memory joins. VLDB 9(6), 480–491 (2016)

    Google Scholar 

  10. Makreshanski, D., Giceva, J., Barthels, C., Alonso, G.: BatchDB: efficient isolated execution of hybrid OLTP+OLAP workloads for interactive applications. In: SIGMOD, pp. 37–50 (2017)

    Google Scholar 

  11. Narula, N., Cutler, C., Kohler, E., Morris, R.: Phase reconciliation for contended in-memory transactions. In: OSDI, pp. 511–524 (2014)

    Google Scholar 

  12. Oracle: Oracle Database 12c: Advanced Queuing Whitepaper (2015)

    Google Scholar 

  13. Pandis, I., Johnson, R., Hardavellas, N., Ailamaki, A.: Data-oriented transaction execution. VLDB 3(1–2), 928–939 (2010)

    Google Scholar 

  14. Prasaad, G., Cheung, A., Suciu, D.: Handling highly contended OLTP workloads using fast dynamic partitioning. In: International Conference on Management of Data, SIGMOD/PODS 2020 (2020)

    Google Scholar 

  15. Rehrmann, R., Binnig, C., Böhm, A., Kim, K., Lehner, W., Rizk, A.: OLTPshare: the case for sharing in OLTP workloads. VLDB 11(12), 1769–1780 (2018)

    Google Scholar 

  16. Ren, K., Faleiro, J.M., Abadi, D.J.: Design principles for scaling multi-core OLTP under high contention. In: SIGMOD, pp. 1583–1598 (2016)

    Google Scholar 

  17. Rodeh, O.: B-trees, shadowing, and clones. TOS 3(4), 2 (2008)

    Article  Google Scholar 

  18. Sellis, T.K.: Multiple-query optimization. TODS 13(1), 23–52 (1988)

    Article  Google Scholar 

  19. Tian, B., Huang, J., Mozafari, B., Schoenebeck, G.: Contention-aware lock scheduling for transactional databases. VLDB 11(5), 648–662 (2018)

    Google Scholar 

  20. Wang, T., Kimura, H.: Mostly-optimistic concurrency control for highly contended dynamic workloads on a thousand cores. VLDB 10(2), 49–60 (2016)

    Google Scholar 

  21. Zhang, C., Li, Y., Zhang, R., Qian, W., Zhou, A.: Benchmarking on intensive transaction processing. Front. Comp. Sci. 14(5), 1–18 (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chunxi Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zhang, C., Zhang, S., Chen, T., Zhang, R., Liu, K. (2024). An Optimized Solution for Highly Contended Transactional Workloads. In: Hermanns, H., Sun, J., Bu, L. (eds) Dependable Software Engineering. Theories, Tools, and Applications. SETTA 2023. Lecture Notes in Computer Science, vol 14464. Springer, Singapore. https://doi.org/10.1007/978-981-99-8664-4_23

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-8664-4_23

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-8663-7

  • Online ISBN: 978-981-99-8664-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics