MTBase:优化跨租户数据库部署
MTBase: Optimizing Cross-Tenant Database Queries
摘要:
在过去的十年中,许多业务应用程序已经迁移到云中。特别是,“数据库即服务”模式已成为主流。虽然现有的多租户数据管理系统专注于单租户查询处理,但我们认为现在是时候重新考虑如何跨多租户处理查询,以便我们不仅获得更有价值的见解,而且成本最低。正如我们将在本文中讨论的那样,标准SQL语义不足以以明确的方式处理跨租户查询,这就是为什么现有系统使用其他昂贵的方法,如ETL或数据集成。我们首先提出了MTSQL,一组标准SQL的扩展,它解决了歧义问题。接下来,我们介绍MTBase,一个查询处理中间件,它可以在SQL之上高效地处理MTSQL。正如我们将看到的,有一个规范的、可证明正确的、从MTSQL到SQL的重写算法,但是这可能导致查询执行性能很差,即使是在高性能数据库产品上。我们进一步表明,通过精心设计的优化,可以减少执行时间,从而使单租户查询的差异变得微不足道。
英文摘要:
In the last decade, many business applications have moved into the cloud. In particular, the "database-as-a-service" paradigm has become mainstream. While existing multi-tenant data management systems focus on single-tenant query processing, we believe that it is time to rethink how queries can be processed across multiple tenants in such a way that we do not only gain more valuable insights, but also at minimal cost. As we will argue in this paper, standard SQL semantics are insufficient to process cross-tenant queries in an unambiguous way, which is why existing systems use other, expensive means like ETL or data integration. We first propose MTSQL, a set of extensions to standard SQL, which fixes the ambiguity problem. Next, we present MTBase, a query processing middleware that efficiently processes MTSQL on top of SQL. As we will see, there is a canonical, provably correct, rewrite algorithm from MTSQL to SQL, which may however result in poor query execution performance, even on high-performance database products. We further show that with carefully-designed optimizations, execution times can be reduced in such ways that the difference to single-tenant queries becomes marginal.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。