Jump to content

Best way to store votes by user


Mutley

Recommended Posts

I have a site where users can vote for articles.

 

I would like to record every article that user votes, so you can simply go into their profile and see which articles they have voted on. How would I organise this?

 

I was thinking of simply a row for each vote in a table, such as:

 

voteID

userID

articleID

time

1

43

9

135213512

2

12

3

135213512

 

 

But if there are hundreds of thousands of votes, wouldn't this stuff the database and become slow?

 

Thanks,

Nick.

Link to comment
https://forums.phpfreaks.com/topic/131102-best-way-to-store-votes-by-user/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.