This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi,
I've got a couple of tables in an eCommerce app which would benefit with some caching. These tables contain products, items and a mapping table. In the product and item tables, i've added an aggregate, to the image field, which I don't use anywhere - in an attempt to make it lazy loading in nature. it's worked great by reducing calls to the database to only retrieve the images it needs to get. reading on to L2 Caching in lightspeed, Default Caching has been added programatically to the Context, as well as setting "Cached" to True and 1min for trials for the above-stated tables. It has resulted in the pages loading abit faster however images don't load. To be specific, when viewing a product and it's items; the current record's image loads but the images of the items don't. in addition, i also have a selected list of other products that are displayed on the same page - their images don't load now too. in this example of the relationship (product <-> productitem <-> item), how can i cache it for quick response and still have my images loading? Thanks! |
|
|
Just to make sure I am understanding your situation correctly, you have an named aggregate on a field called Image which is on both the Products and Items entities. You would normally load this with a named aggregate to load in the image data, but when fetching this from the cache the image field is not populated. Is that correct?
|
|