Nasıl ben veritabanından aldıktan sonra, oturum sırasında hızlı erişim için giriş yaptıktan sonra kullanıcının verilerini saklamak gerekir?

0 Cevap php

I am developing a social network from scratch and need to store the user's frequently required data like his friendlist, groups, news-feed post Ids, so that it can be accessed fast after each refresh rather than querying the database each time it is asked. What would be a better way to store this data? The application is expected to bear heavy traffic.

I was thinking of storing this data in php objects after the user login. I am using PHP OOPs model to interact with the database thus my data is retrieved though objects & retrieved data is stored in objects after query from database. So, Instead of destroying the object as soon as its value has been passed once, I would retain the required objects uptil the user is logged in. Is this the correct way?

Ben sadece bir çaylağım ..

Teşekkürler ..

0 Cevap