Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 将复合ID与Hibernate一起使用时是否存在性能问题?_Performance_Hibernate_Composite Key_Composite Primary Key - Fatal编程技术网

Performance 将复合ID与Hibernate一起使用时是否存在性能问题?

Performance 将复合ID与Hibernate一起使用时是否存在性能问题?,performance,hibernate,composite-key,composite-primary-key,Performance,Hibernate,Composite Key,Composite Primary Key,有人知道在Hibernate中使用复合ID(无论是@EmbeddedId还是@IdClass)时会出现什么性能问题吗 谢谢。在我看来,Hibernate本身无论是否为复合键都不会对性能产生显著影响。重要的是dbms、引擎类型、查询、表更新次数、索引和列类型。Hibernate只是将hql转换成sql,所以在这种情况下,如果底层查询性能良好,Hibernate的性能应该是良好的 这里有一个链接,就MySQL而言,对这个问题有很好的解释

有人知道在Hibernate中使用复合ID(无论是
@EmbeddedId
还是
@IdClass
)时会出现什么性能问题吗


谢谢。

在我看来,Hibernate本身无论是否为复合键都不会对性能产生显著影响。重要的是dbms、引擎类型、查询、表更新次数、索引和列类型。Hibernate只是将hql转换成sql,所以在这种情况下,如果底层查询性能良好,Hibernate的性能应该是良好的

这里有一个链接,就MySQL而言,对这个问题有很好的解释