Skip to content

isthatME/Query-optmizer

Repository files navigation

Query optmizer

A query optimizer based using some heuristics.

Requirements

Setup

  1. Clone the repo
git clone https://github.com/isthatME/Query-optmizer.git
  1. Install NPM packages
npm install
  1. Run the project
ng serve

Example of an optimized query

Given the following query

SELECT USUARIO.NOME, USUARIO.CEP,NUMERO  FROM  USUARIO  
 JOIN CONTAS       
 ON CONTAS.USUARIO_IDUSUARIO = USUARIO.IDUSUARIO      
 WHERE NUMERO > 10 AND BAIRRO = CENTRO    ORDER BY BAIRRO, NUMERO, NOME

The result will be

About

Using relational algebra to optmize a sql query

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published