Skip to content

Conversation

anotherpit
Copy link

Omit looking up for columnName each time the castValue() method is called.

@particlebanana
Copy link
Contributor

So to clarify why this is needed: the data comes back from the database with columnNames used and we need to look at the model attributes to determine if any casting needs to be done.

Before this fix we would look up the column name for each attribute, this creates a cached mapping once to speed up the process.

Sound correct @anotherpit?

@anotherpit
Copy link
Author

@particlebanana Exactly

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants