I created a database that have following table for user activities:
user_id | INTEGER | user being notified
actor_id | INTEGER | user performing the action
activity_type | STRING | classname/type of the object being notified
activity_id | INTEGER | id of the object being notified
context_type | STRING | classname/type of the object's parent
context_id | INTEGER | id of the object's parent
read/view_at | DATETIME | timestamp of when user saw it
I don't know if this design is good in terms of performances. So I want to test it somehow. I can populate database with a lot of data and open page where I need to get data from this table but I don't know if this is relevant test.
Is there a good way to see how this design will perform when there are 10.000
users and 50.000.000
records in feed table?
I don't know if this can help but this I am using MS SQL Server