vendredi 1 novembre 2019

Question regarding databases and a separate data file

Essentially, I have a data file with ~200 different structs that have around 8 data types each. I'm making a program where I pull data from that file at the user's request to see things like Population, GDP, etc. If the user opts to choose a result of "top 10 most populous countries", would it be inefficient to compare all 200 values 10 times to find the top 10?

Aucun commentaire:

Enregistrer un commentaire