                 return
             if @query_result.is_feed or @query_result.size() < @query_result.position + @parent.container.limit
                 @query_result.once 'add', (query_result, row) =>
-                    @add_row row
+                    @parent.render()
+                    if not @parent.container.state.pause_at?
+                        @add_row row
                     @fetch_batch_rows()
                 @query_result.fetch_next()
             else

            @parent.render()
            @fetch_batch_rows()

        add_row: =>
            @parent.render()
            if not @parent.container.state.pause_at?
                @render()

    class TreeView extends ResultView
        className: 'results tree_view_container'
        template: Handlebars.templates['dataexplorer_result_tree-template']

        render: =>
            @$el.html @template
                tree: @json_to_tree @current_batch()
            # ATN TODO
            if @query_result.is_feed
                first_event = @$('.jt_array:first li:first')
                first_event.css 'background-color': '#eeeeff'
                first_event.animate 'background-color': '#fbfbfb'
            return @

    class TableView extends ResultView
        className: 'results table_view_container'

# TODO ATN
# rate limit events to avoid freezing the browser when there are too many
# many of the fields of the parent view don't get updated when they change
# table view shows "no results" when it means "no more results" or "no results yet"
# It says "older results ahve been discarded" but they are just hidden and take up memory
# disabled horizontal scrollbar shows up sometimes
# the table view should not completely redraw every added row

# Copyright 2010-2012 RethinkDB, all rights reserved.
module 'DataExplorerView', ->
