field_sql_storage_field_storage_write() calls field_read_field(), which reads from the DB.
I don't think there's any reason not to use the recommended field_info_field() instead, which fetches from the cached info.

CommentFileSizeAuthor
field_storage_write.patch950 bytesyched

Comments

bjaspan’s picture

Status: Needs review » Reviewed & tested by the community

No reason I can think of.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

(first Field API patch I understood first try ;))

yched’s picture

wow, that was fast.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.