Hibernate detached separation query and crawl strategy considerations

Source: Internet
Author: User

1.detached the Cartesian product is produced in the case of the Jion explicit left outer connection query in the crawl strategy

        Detachedcriteria DC = Detachedcriteria.forclass (topic.class);    Dc.add (Restrictions.like ("title", "percent"));    Criteria = Dc.getexecutablecriteria (session);           Criteria.setfirstresult ((currentpage-1) * pagesize);     Criteria.setmaxresults (pagesize);     list<topic> list = Criteria.list ();

The results from the above query under join are

There is a Cartesian product phenomenon, so when using separate query paging if lazy is false should try to use Subselect or select crawl policy

Detailed hibernate retrieval methods, crawl strategies, and the use of level two cache to optimize and resolve database transaction concurrency problems:HTTP://BLOG.CSDN.NET/U013087513/ARTICLE/DETAILS/69371833?UTM _source=tuicool&utm_medium=referral

Hibernate detached separation query and crawl strategy considerations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.