Imagine we have a huge database (MySQL & PHP) with two tables that have:
Important id in table #1
Important id in table #2
Logged in people to the site can like any record from these tables that they encounter on any page of the website. Those like will be stored and added live to:
Important_SESSION_Array_#1
Important_SESSION_Array_#2
On each like, the SESSION arrays get updated with the new value as first in the array. All the values are unique ID's: the AI integers. (And related to other tables in the dBase.)
Then, on each page load you access these two session arrays, and look for matching ID's from other tables that are loaded live.
This situation raises several questions:
- how big or long can these session arrays be? Is there an actual limit?
- is there any knowledge on this for the use on mobile devices and limited session storage on devices?
- is there a better way for procedure on this? (I am sure there is!)
- Any more insights on this are welcome
It is an example, but one that we actually encounter with over 20 million records on this level. Hence, we're looking for better ways to work with huge data amounts like these - even per user.
Any thoughts you have on this are very welcome!