try analyze tables compute statistics for the optimizer to work properly