Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sairahcaz authored Nov 5, 2022
1 parent 7c58caf commit 9dfd461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ $myClass = new class()
}
```

So when calling `$myClass->processSomethingHeavy1(SomeModel::find(1))` the variable `$relation` will always have the same value like in `$myClass->processSomethingHeavy1(SomeModel::find(2))`, when they have the same `foo_relation_id`. In spaties packge you would lose performance here, cause the ***containing method*** parameter ($someModel) has changed... Note that `processSomethingHeavy3` would also loose performance, even though the `foo_relation_id` would be the same, cause here also the changed **$someModel** would be used as the combination key.
So when calling `$myClass->processSomethingHeavy1(SomeModel::find(1))` the variable `$relation` will always have the same value like in `$myClass->processSomethingHeavy1(SomeModel::find(2))` as long as they have the same `foo_relation_id`. In spaties packge you would lose performance here, cause the ***containing method*** parameter ($someModel) has changed... Note that `processSomethingHeavy3` would also loose performance, even though the `foo_relation_id` would be the same, cause here also the changed **$someModel** would be used as the combination key.

## Enable/Disable

Expand Down

0 comments on commit 9dfd461

Please sign in to comment.