Browse files

Merge branch 'master' into sequel_dump

  • Loading branch information...
2 parents fa15167 + 601e50f commit b7d662a3b9edfcb4139de66eb56894b3cc9f41d2 @ricardochimal committed Feb 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/taps/client_session.rb
View
6 lib/taps/client_session.rb
@@ -126,13 +126,13 @@ def cmd_send_data
loop do
row_size = 0
chunksize = Taps::Utils.calculate_chunksize(chunksize) do |c|
- time_db_started = Time.now
+ time_skip_start = Time.now
rows = Taps::Utils.format_data(table.order(*order).limit(c, offset).all, string_columns)
- time_in_db = Time.now - time_db_started
break if rows == { }
row_size = rows[:data].size
gzip_data = Taps::Utils.gzip(Marshal.dump(rows))
+ time_skip = Time.now - time_skip_start
begin
session_resource["tables/#{table_name}"].post(gzip_data, http_headers({
@@ -145,7 +145,7 @@ def cmd_send_data
end
raise
end
- time_in_db
+ time_skip
end
progress.inc(row_size)

0 comments on commit b7d662a

Please sign in to comment.