Revert "Allow query with size 0"

This reverts commit e1fb9950a78d303508855b965c6fc287eb8622c0.
Allow query with size == 0