Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COYou are correct that is exactly what I want to do. Every page unfortunately, will require this query to be run since every page shows some detail about other users... The logic is already in place to update the array that is stored in memcached without completely destroying the cache therefore applying it to an array stored in the app itself would be trivial. Regardless thanks, I'm looking for opinions either way on this, as like you said, it may be completely unneeded.
      singulars
    2. CO@gordyr Having made a lot of scalable apps myself and even worked on a couple of high profile apps I have never seen memcached used in this way efficiently. Normally it is used to house SQL result sets (or other data that is rare modified) instead of querying directly but it seems like you wanna take it a step further and have memcache somehow trace changes without pinging SQL...it sounds undoable.
      singulars
    3. COThanks this is useful info. What I am trying to do is prepare this app to be as scale-able as possible. My thought process is as follows: In this app user's do not frequently add/remove followers, most of their time will be spent using the app itself. Therefore storing these results in memcached appears to make sense as they are small arrays of userid's. Would performing a query on a table with for e.g 10 million rows extracting that users list of followers several times during a users session be acceptable? Please forgive my ignorance I have never had to deal with such large dataset
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload