×

Indexing based on object type

  • US 9,158,801 B2
  • Filed: 07/27/2012
  • Issued: 10/13/2015
  • Est. Priority Date: 07/27/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising, by one or more computing devices:

  • receiving a search request for at least one of a plurality of objects of a social-networking system, wherein;

    the social-networking system comprises a social graph that comprises a plurality of nodes and a plurality of edges connecting the nodes;

    each object corresponds to a node of the social graph;

    the objects of the social-networking system are stored by a plurality of partitions of a database that are each configured to store objects of only a particular one of a plurality of object types;

    the objects in the partitions are indexed by a plurality of search indices that each index only a particular one of the plurality of partitions; and

    each search index indexes objects with information identifying edges connecting the nodes represented by the objects to other nodes in the social graph and with information identifying the other nodes;

    determining one or more search queries based on the search request wherein, each search query has a single object type for its expected search results;

    sending each search query to the partition that is configured to store objects of only the particular one of the object types that the search query has for its expected search results;

    for each search query, attempting to retrieve one or more search results from the partition that the search query was sent to, wherein the search results were identified using the search index that indexes only the partition; and

    aggregating search results retrieved from the partitions that the search queries were sent to.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×