Fix: slow index performance due to IFNULL() on log_user_id