7. An article comprising a non-transitory computer-readable medium having instructions for polymorphic selection of data from a database storing data on at least one memory device and managed by one or more hardware processors that, when executed by one or more processors, cause the one or more processors to: receive, with the one or more processors, a request that has at least a database query compatible with salesforce object query language (SOQL), wherein the database query comprises at least an expression using a polymorphic relationship and a SELECT clause; add, with the one or more processors, a TYPEOF expression to the SELECT clause to function as a case expression to allow specification of fields of a related parent object that are to be selected based on the polymorphic relationship; process the request utilizing the polymorphic relationship, with the one or more processors, by running the query against a portion of a set of data in the database; transmit, with the one or more processors, a result for the database query, where the result is defined by at least the polymorphic relationship, to a remote electronic device.
7. An article comprising a non-transitory computer-readable medium having instructions for polymorphic selection of data from a database storing data on at least one memory device and managed by one or more hardware processors that, when executed by one or more processors, cause the one or more processors to: receive, with the one or more processors, a request that has at least a database query compatible with salesforce object query language (SOQL), wherein the database query comprises at least an expression using a polymorphic relationship and a SELECT clause; add, with the one or more processors, a TYPEOF expression to the SELECT clause to function as a case expression to allow specification of fields of a related parent object that are to be selected based on the polymorphic relationship; process the request utilizing the polymorphic relationship, with the one or more processors, by running the query against a portion of a set of data in the database; transmit, with the one or more processors, a result for the database query, where the result is defined by at least the polymorphic relationship, to a remote electronic device. 9. The article of claim 7 wherein the query is processed as a plurality of batches.