Optimize rendering query and Table editor for large rowset