1. A method of performing financial processing in a computer, comprising: (a) selecting accounts and events from a database through a selector function, wherein the selector function uses one or more selection criteria to determine which accounts and events should be selected from the database and the selection criteria compare an account attribute to another account attribute, a literal value, or a domain value; and (b) performing one or more profitability calculations in the computer using the accounts and events selected from the database; (c) wherein the selector function groups the selection criteria together, when the selection criteria are similar, and processes the grouped selection criteria in parallel in the database.