Skip to content

SQL-Query on every update (even without Changes) #1128

Description

@Skulli

Take any model with acts_as_taggable_on in it, like a User

> user = User.first
> user.save
> ActsAsTaggableOn::Tagging Load (0.3ms)  SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $1 AND "taggings"."taggable_type" = $2  [["taggable_id", 1], ["taggable_type", "User"]]

Is there a way to prevent this? I checked the gem-code and found 2 after_save-Callbacks, but when i triggered those by hand, the sql-query was different.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions