Get the App
SLTechnology News&Howtos  ›  Network Security  › 

7 measures encouraged by optimizing Hibernate

Shulou Source: shulou.com Published: 2022-06-01 06:20:23 09月30日 Update

7 steps Hibernate encourages:

1. Use many-to-one instead of one-to-many.

2. Flexible one-way one-to-many

3. Instead of one-on-one, use many-on-one instead of one-on-one

4. Configure object cache without using collection cache

5. One-to-many Bag Multi-to-one Set

6. inheritance use display polymorphism HQL:from object polymorphism="exlicit" Avoid investigating all objects

7. Eliminate large tables and use L2 cache

Tags: Cache one-to-one object measure Polymorphism Generation No one-way single configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple vpn Huawei NVidia