-2
I’m developing a website and my code is using many queries/queries in Mysql at once, I’m trying to decrease these queries to the smallest number since I think the more queries more resources will be consumed, I’m sure?
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 mean any type of consumption as RAM, CPU, bytes, processing, etc