Skip to content

Commit

Permalink
Extend delay in between fusion table queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Jones committed May 13, 2011
1 parent c212539 commit e55d66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/concerns/couriers/fusionable.rb
Expand Up @@ -36,7 +36,7 @@ def perform
notify "Adding to Fusion Tables", photo.key
table.select("ROWID", "WHERE name='#{photo.key}'").map(&:values).map(&:first).map { |id| table.delete id }
table.insert [photo.to_fusion]
sleep 0.6 # 5 queries per second
sleep 1 # 5 queries per second
rescue => e
notify "Fusion Tables failed", id
end
Expand Down

0 comments on commit e55d66b

Please sign in to comment.