Hi All,
I have some local datas. For Example i have 5000 records like below:
Id=1
Name =“xxx”
Surname =“yyy”
Age = 21
Id=2
Name =“zzz”
Surname =“ttt”
Age = 43
etc…
I have to Id.
I think two different methods to access this data.
First Method:
I will define a table in a diffrent lua file and i will storage all data like below:
SampleData={}
SampleData[1].Name=“xxx”
SampleData[1].Surname=“yyy”
SampleData[1].Age=21
SampleData[2].Name=“zzz”
SampleData[2].Surname=“ttt”
SampleData[2].Age=43
etc…
I will Define into a lua file about 5000 records.
Second Method:
I will storage the data into a local SQLlite database and execute a query to access this data like :
" SELECT * FROM SampleData WHERE Id=1"
Which method is faster? Which method is more accurate?
Thanks in advance…