首页> 外国专利> METHODS AND SYSTEMS FOR JOINING INDEXES FOR QUERY OPTIMIZATION IN A MULTI-TENANT DATABASE

METHODS AND SYSTEMS FOR JOINING INDEXES FOR QUERY OPTIMIZATION IN A MULTI-TENANT DATABASE

机译:多租户数据库中用于优化查询的联接索引的方法和系统

摘要

Methods and systems for query optimization for a multi-tenant database system are provided. Some embodiments comprise receiving at a network interface of a server in a multi-tenant database system an original query transmitted to the multi-tenant database system by a user associated with a tenant, wherein the original query is associated with data accessible by the tenant, and wherein the multi-tenant database system includes at least a first index and a second index. Metadata associated with the data is retrieved, wherein at least a portion of the data is stored in a common table within the multi-tenant database system. A tenant-selective query syntax is determined by analyzing at least one of metadata generated from information about the tenant or metadata generated from the data accessible by the tenant. An improved query is then generated using the query syntax, wherein the improved query is based at least in part upon the original query and a result of a join between a first number of rows associated with the first index and a second number of rows associated with the second index.
机译:提供了用于多租户数据库系统的查询优化的方法和系统。一些实施例包括在多租户数据库系统中的服务器的网络接口处接收与租户相关联的用户向多租户数据库系统发送的原始查询,其中该原始查询与该租户可访问的数据相关联,其中,多租户数据库系统至少包括第一索引和第二索引。检索与数据关联的元数据,其中至少一部分数据存储在多租户数据库系统内的公用表中。通过分析从关于租户的信息生成的元数据或从租户可访问的数据生成的元数据中的至少一个来确定租户选择性查询语法。然后,使用查询语法生成改进的查询,其中,改进的查询至少部分基于原始查询以及与第一索引相关联的第一行数与与第一索引相关联的第二行数之间的联接结果。第二个索引。

著录项

  • 公开/公告号US2018276276A1

    专利类型

  • 公开/公告日2018-09-27

    原文格式PDF

  • 申请/专利权人 SALESFORCE.COM INC.;

    申请/专利号US201815924023

  • 发明设计人 WILLIAM CHARLES EIDSON;JESSE COLLINS;

    申请日2018-03-16

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-21 12:58:48

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号