Use indexes and on foreign key bullshit