Variable query buffer size
Implement primary key search