Assuming id_topic
is indexed, you're not going to get better. The only recommendation I would have is to look at the other indexes on this table and make sure you don't have redundant ones that include num_views
in them. That would decrease update speed on this update.
For example if you had the following indexes
- ( some_column, num_views)
- ( some_column, num_views, another_column)
Index #1 would be extraneous and just add to the insert/update overhead