I am developing a website and my code is using many queries / queries in MySQL at once, I am trying to decrease these queries to the smallest number since I think the more queries the more resources will be consumed, am I right? >
Example 1:
$busca = $conexao->query("SELECT nome FROM graficos");
$busca2 = $conexao->query("SELECT nascimento FROM graficos");
Example 2:
$pegadeumavez = $conexao->query("SELECT nome, nascimento FROM graficos");
Would Example 1 have the same consumption as Example 2? I say any type of consumption like RAM, CPU, bytes, processing, etc.