Looping on Data vs Fetching from a database
#1

You see, I was making a /stats command. In this command, the player would be able to see the houses that he bought. Now, would it be better looping through thousands of houses just to find his house, or fetching the house data from a table right there?

I'm basically weighing down the different scenarios to (possibly) avoid the worst execution time in the command.
Reply


Messages In This Thread
Looping on Data vs Fetching from a database - by Neil. - 18.10.2014, 06:21
Re: Looping on Data vs Fetching from a database - by Eth - 18.10.2014, 06:29
Re: Looping on Data vs Fetching from a database - by Neil. - 18.10.2014, 06:32

Forum Jump:


Users browsing this thread: 1 Guest(s)