post dao add select length function