Past ExamsRwanda ICT preparation

Topics / Database

A web page listing 500 staff runs one query for the list, then a separate query for each person's district name, 501 queries in all, and it loads slowly. What is the better approach?

Une page web listant 500 agents exécute une requête pour la liste, puis une requête distincte pour le nom du district de chaque personne, soit 501 requêtes, et elle se charge lentement. Quelle est la meilleure approche ?

Answers
ARun the 501 queries in a random order so the database's cache stays warmExécuter les 501 requêtes dans un ordre aléatoire pour garder le cache de la base actif
BFetch staff and districts together in one query with a joinRécupérer agents et districts ensemble en une seule requête avec une jointure
CAdd a second web serverAjouter un second serveur web
DRemove the district names from the pageRetirer les noms de districts de la page
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Database Management·3 marks·Hard

More Database questions