Added max size support to QueryDefinition and LazyQueryView.