1. A method for processing database queries in a database system, comprising: analyzing a query comprising a plurality of operators to determine types of operators; determining for said types of operators an amount of memory required for processing the query; and assigning a memory allocation of said amount of memory for each type of operator.