optimize tjingcaimatches and tjingcairesult query