Finish view_by & order_by. Performance fix for mark_all_read. Fix entry refresh behavior for mark_all_read.