GeekInterview.com
Results 1 to 4 of 4

Diff b/w Eager loading and Lazy Loading

This is a discussion on Diff b/w Eager loading and Lazy Loading within the Java forums, part of the Software Development category; Hi Can anyone tell what is the difference between eager loading and lazy loading?...

  1. #1
    dshaktikumar is offline Junior Member Array
    Join Date
    Oct 2008
    Answers
    3

    Diff b/w Eager loading and Lazy Loading

    Hi Can anyone tell what is the difference between eager loading and lazy loading?


  2. #2
    sk_seeker is offline Contributing Member Array
    Join Date
    Dec 2007
    Answers
    48

    Re: Diff b/w Eager loading and Lazy Loading

    Quote Originally Posted by dshaktikumar View Post
    Hi Can anyone tell what is the difference between eager loading and lazy loading?
    Loading can mean many things in computer science. Are you refering to linkers/loaders OR something else?? A better phrased question, with some context, may get you an answer.


  3. #3
    dshaktikumar is offline Junior Member Array
    Join Date
    Oct 2008
    Answers
    3

    Re: Diff b/w Eager loading and Lazy Loading

    Hi All,
    I mean, Hibernate loads the data in 2 ways.
    One is Eager loading and lazy loading. Im asking for the difference between two .


  4. #4
    SahilKabra is offline Contributing Member Array
    Join Date
    Sep 2006
    Answers
    45

    Re: Diff b/w Eager loading and Lazy Loading

    For hibernate,
    lazy loading means that any foreign key references that you have in you table will be loaded only when referred to by the application.
    Eager loading means everything will be loaded at once.

    Regards,
    Sahil.


    •    Sponsored Ads