{"action":"created","issue":{"url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/12","labels_url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/12/comments","events_url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/12/events","html_url":"https://github.com/godaddy/activerecord-delay_touching/issues/12","id":104479425,"number":12,"title":"Would it be possible to skip touching altogether?","user":{"login":"monfresh","id":811150,"avatar_url":"https://avatars.githubusercontent.com/u/811150?v=3","gravatar_id":"","url":"https://api.github.com/users/monfresh","html_url":"https://github.com/monfresh","followers_url":"https://api.github.com/users/monfresh/followers","following_url":"https://api.github.com/users/monfresh/following{/other_user}","gists_url":"https://api.github.com/users/monfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/monfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monfresh/subscriptions","organizations_url":"https://api.github.com/users/monfresh/orgs","repos_url":"https://api.github.com/users/monfresh/repos","events_url":"https://api.github.com/users/monfresh/events{/privacy}","received_events_url":"https://api.github.com/users/monfresh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-02T13:20:40Z","updated_at":"2015-09-03T03:39:04Z","closed_at":"2015-09-03T03:24:20Z","body":"Thanks for this awesome gem! I'm using it to speed up a CSV import script in a Rails app that does a lot of touching. Without this gem, the script takes about 31 minutes with a particular data set. With the gem, it takes a little less than 18 minutes.\r\n\r\nIdeally, touching would be bypassed completely during the import because the touching is only needed to populate a single Postgres tsvector column used for full-text search. If I remove all touching code from my app, the script takes about 8 minutes. Then, populating the search index takes an additional 3 minutes via `Location.find_each(&:touch)`. That's a total of 11 minutes, which is significantly faster.\r\n\r\nSince touching is not necessary during the intial data import, I was wondering if there is a way to bypass the touching. Something like `ActiveRecord::Base.skip_touching do`.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/comments/137322132","html_url":"https://github.com/godaddy/activerecord-delay_touching/issues/12#issuecomment-137322132","issue_url":"https://api.github.com/repos/godaddy/activerecord-delay_touching/issues/12","id":137322132,"user":{"login":"mtuckergd","id":4377828,"avatar_url":"https://avatars.githubusercontent.com/u/4377828?v=3","gravatar_id":"","url":"https://api.github.com/users/mtuckergd","html_url":"https://github.com/mtuckergd","followers_url":"https://api.github.com/users/mtuckergd/followers","following_url":"https://api.github.com/users/mtuckergd/following{/other_user}","gists_url":"https://api.github.com/users/mtuckergd/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuckergd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuckergd/subscriptions","organizations_url":"https://api.github.com/users/mtuckergd/orgs","repos_url":"https://api.github.com/users/mtuckergd/repos","events_url":"https://api.github.com/users/mtuckergd/events{/privacy}","received_events_url":"https://api.github.com/users/mtuckergd/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T03:39:03Z","updated_at":"2015-09-03T03:39:03Z","body":"@monfresh, indeed. ActiveRecord lets you specify the timestamp columns but, since this is your own model, you can simply specify the updated_at column in your update. It's less future proof, but much simpler if you're comfortable such things will not change. \r\nGood luck! "}}