I want to make one thing happen. Here let's say I have a lot of news. You can put likes to them. Each user, or IP can put one like. Here's how to write this in the database?
There is an idea to create a table. There are ip, user, news columns in it - the IP from which they liked, the user who liked, if the login and the likes of the likes were liked, respectively. I don’t know if this is theoretically true or not, but considering ... if, for example, there are 100 news items, and each has 100 likes, then this is already 10,000 lines in the database table. Surely because the check put the user like or not, will take quite a lot of time.
So tell me, please, how best to do?