Archiving rows dynamically
Posted
by Serge
on Stack Overflow
See other posts from Stack Overflow
or by Serge
Published on 2010-06-02T16:43:43Z
Indexed on
2010/06/02
16:54 UTC
Read the original article
Hit count: 162
I was wondering what would be the best solution to dynamically archive rows. For instance when a user marks a task as completed, that task needs to be archived yet still accessible.
What would be the best practices for achieving this? Should I just leave it all in the same table and leave out completed tasks from the queries? I'm afraid that over time the table will become huge (1,000,000 rows in a year or less). Or should I create another table ie task_archive
and query that row whenever data is needed from it?
I know similar questions have been asked before but most of them where about archiving thousands of rows simultaneously, I just need to know what would be the best method (and why) to archive 1 row at a time once it's been marked completed
© Stack Overflow or respective owner