def fetch_remote_in_server(params)
    json = self.class.parse_json(params[:json])
    encoded_data = params[:encoded_data]

    rows = parse_encoded_data(encoded_data, json[:checksum])
    @complete = rows == { }

    unless @complete
      import_rows(rows)
      rows[:data].size
    else
      0
    end
  end
def fetch_remote_in_server(params)
    json = self.class.parse_json(params[:json])
    encoded_data = params[:encoded_data]

    rows = parse_encoded_data(encoded_data, json[:checksum])
    @complete = rows == { }

    unless @complete
      import_rows(rows)
      rows[:data].size
    else
      0
    end
  end
this one is used inside the server process