Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
Let me explain the scenario:
We added a property Alt Text to the DocumentType "Image".
On some media, we filled in that newly added property.
We were looking for a way to make sure that when rendering images, we would NOT get a DB call.
The following blog post put us on the right track: http://shazwazza.com/post/Ultra-fast-media-performance-in-Umbraco
The suggestion is getting the properties of the media via a Examine query (using the InternalIndex).
There, we only get the "standard" Umbraco Image properties like "umbracoBytes".
What was missing, is the property "Alt Text"...
Does anybody if I need to "add"/"expose" this newly added property?
Or if this should be available by default, but should re-index certain caches/indexes?
I'm using Umbraco v 7.0.4
Thanks in advance :)
Jan,
You may need to inject those extra properties in using gatheringnodedata as I think with media items you only get the core properties in see http://thecogworks.co.uk/blog/posts/2012/november/examiness-hints-and-tips-from-the-trenches-part-2/ set it up for internal index and for media items get those extra properties and inject them.
Regards
Ismail
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine query results => missing new property?
Hello,
Let me explain the scenario:
We added a property Alt Text to the DocumentType "Image".
On some media, we filled in that newly added property.
We were looking for a way to make sure that when rendering images, we would NOT get a DB call.
The following blog post put us on the right track: http://shazwazza.com/post/Ultra-fast-media-performance-in-Umbraco
The suggestion is getting the properties of the media via a Examine query (using the InternalIndex).
There, we only get the "standard" Umbraco Image properties like "umbracoBytes".
What was missing, is the property "Alt Text"...
Does anybody if I need to "add"/"expose" this newly added property?
Or if this should be available by default, but should re-index certain caches/indexes?
I'm using Umbraco v 7.0.4
Thanks in advance :)
Jan,
You may need to inject those extra properties in using gatheringnodedata as I think with media items you only get the core properties in see http://thecogworks.co.uk/blog/posts/2012/november/examiness-hints-and-tips-from-the-trenches-part-2/ set it up for internal index and for media items get those extra properties and inject them.
Regards
Ismail
is working on a reply...