Training log pagination query improvement and fiexies