I'm starting to design a big project - similar to Facebook. I got into a situation where I need to solve the following problem.
When you take Facebook at Posting choose who can see the post. (You can check friend who can see the post, I need work with this friends)
And I do not want to deal with similar style
Very bad way (way of example only)
post_id | visible_user_ id 5 | 15,25,156,489,21,56,41,56,21,56,1465 ...
This method would be good but the table could have millions of records
post_id | visible_user_id 5 | 15 5 | 25 5 | 156
The question is: which way do I move in or do not have experience with something similar? I want to find fastest solution, what do you think about serialized string?