Wednesday, May 20, 2009

Eliminating Join Query

For many people trying to optimize the performance of their queries the JOIN clause is one of the biggest bottle necks. In RDBMS an SQL JOIN combines records from two or more tables in a database. The result can be saved as a table or used as is. A JOIN is a means for combining fields from two tables by using values common to each other. These queries can get real complex and are infamous for consuming huge amount of time. Eliminating Join query is real tough in RDBMS though you may have some ways of doing that but it will again result in taking more time.
One of the option to consider is using a Schemaless database where as there are no tables in the first place so there isn't any question of joining the tables itself. Using Join or not, Queries that involve complex set of results will not have any effect on the performance and will be executed as any other ordinary query. The structure of the database itself eliminates Join query completely.