I have an associative array in php consisting of about 4k elements. Product Id and Product Name a sample row:
'434353', 'TeaCups'
So no big data. In fact the whole php array file is about 80kb. This is static data, so I won't be changing, deleting any data.
Considering the size of the array and the number of elements in it, Would it be better to access data from the array or I should create a database instead?
The data might be read about 20k times a day.
PS: Each time the data will be read, I will be fetching exactly one element