F
F
forven2015-03-05 13:07:49
Database
forven, 2015-03-05 13:07:49

What to do with the records in the database after deletion if the information about them is useful in the future?

After deleting the user's ad, information about it will be needed for statistics.
What to do in this case, hide? If so, how much can it slow down the search for ads?
Move to another table for statistics? It's probably enough to do it once a day and how to implement a function that will run once a day
Or something else?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2015-03-05
@gbg

It is better to move them directly when deleting, so they will not hang out and you will not have to discard them in all requests.

V
Viktor Koltcov, 2015-03-05
@Vityarik

How many ads are we talking about?
I believe that if the record is simply hidden and the search is done only on non-hidden ones, there will be no fatal slowdown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question