Search for - array vs mysql database.
#1

So i want to know which searching method would be faster. To loop thru my arrays which has loaded my car data or just search for match inside data base with mysql?

I`m studying computer science, we use c# and code in VS and my teacher said that mysql is more older and it`s more developed for working with data and it`s for that exact reason so it`s faster then looping thru List in c# to get your match.

So how is it in SA-MP? Is it the same or not?
Reply
#2

If you have something preloaded in memory it will always be faster than calling a function, doing a search and waiting for it to return the data.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)