×

Methods and systems for providing multiple column custom indexes in a multi-tenant database environment

  • US 10,417,611 B2
  • Filed: 10/04/2010
  • Issued: 09/17/2019
  • Est. Priority Date: 05/18/2010
  • Status: Active Grant
First Claim
Patent Images

1. A database system-implemented method for providing custom indexes in a multi-tenant database environment, the method comprising:

  • reducing, by a custom index computing device, sorting and scanning operations involving data columns and rows during query executions for multiple tenants within the multi-tenant database environment using a multi-tenant data structure having a primary table, wherein the multi-tenant database environment includes the custom index computing device having one or more processing devices and associated memory devices, and a multi-tenant database system coupled to the custom index computing device, wherein the multi-tenant database system includes one or more database storing the multi-tenant data structure and having data resources shared by the multiple tenants, wherein reducing comprises;

    maintaining, by the custom index computing device, a first column and a second column in the primary table of the multi-tenant data structure stored at the multi-tenant database system, wherein maintaining includes defining a first data field for a first data type associated with the first column, and a second data field for a second data type associated with the second column, wherein the first column corresponds to first data of the first data type corresponding to a first tenant of multiple tenants within the multi-tenant environment, wherein the second column corresponds to second data of the second data type corresponding to a second tenant of the multiple tenants;

    maintaining, by the custom index computing device, custom fields in the custom field table of the multi-tenant data structure stored at the multi-tenant database system, wherein maintaining includes assigning tenant-defined indexing to the custom fields such that the custom fields offer tenant-defined indexing of the first and second data persisting in the database;

    maintaining, by the custom index computing device, the index table separate from and associated with the primary table, wherein maintaining includes assigning a tenant identifier of the first tenant and a second tenant identifier of the second tenant to the index table, wherein the first tenant identifier and the second tenant identifier correspond to the first column and the second column, respectively, of the primary table;

    sorting, by the custom index computing device, the index table based on the first column and the second column of the primary table, and the custom fields of the custom field table; and

    causing, by the custom index computing device, the sorted index table to be stored at one or more of the associated memory devices, wherein the key comprises a primary key, wherein the tenant-defined indexing of the data includes tenant-based designation for types of the data to be held by one or more of the custom fields or one or more of the data columns such that an entire data column is capable of representing a single data type, where the single data type includes one or more of a prefix, a suffix, a customer identification, a name, and a title.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×