-
Étienne Barrié authored
We're limiting the attributes being used for INSERTs to those without a default function and no changes. But we can first check for the presence of a default function before checking for changes. That's because the default function will be stored in the schema cache and amounts to a hash fetch in column_for_attribute, while checking for changes potentially calls user code when using the Active Record Attributes API.
Étienne Barrié authoredWe're limiting the attributes being used for INSERTs to those without a default function and no changes. But we can first check for the presence of a default function before checking for changes. That's because the default function will be stored in the schema cache and amounts to a hash fetch in column_for_attribute, while checking for changes potentially calls user code when using the Active Record Attributes API.
Loading