Re: Default Prefetching

From: Gary Jarrel (garyjarre..mail.com)
Date: Wed May 19 2010 - 07:30:56 UTC

  • Next message: Gary Jarrel: "Caching"

    On Wed, May 19, 2010 at 3:20 PM, Marcin Skladaniec <marci..sh.com.au>wrote:

    > Actually I re-read your question. There is no way of specifying a default
    > prefetch for a given entity.
    > Some time ago I lodged a confusing feature request, I think 'default
    > prefetch' can be solution for it. (
    > https://issues.apache.org/jira/browse/CAY-1234)
    > Cheers
    >
    > Marcin
    >
    >

    Thank you Marcin,

    Do you think it is something that could be implemented via Annotations?

    Perhaps a class level or method annotation

    @Prefetch("products.orders");
    public class Category() {

       ..refetch // this could pre-fetch products
       ..refetch("orders") // this could pre-fetch products.orders
        public List<Product> getProducts() {
            ....
        }
    }



    This archive was generated by hypermail 2.0.0 : Wed May 19 2010 - 07:31:31 UTC