主键和技术键使用spring-data-jpa

huangapple 未分类评论46阅读模式
英文:

primary key and technical key with spring-data-jpa

问题

有没有可能在数据库中没有主键的表?我正在使用spring-data-jpa,我的数据库是Oracle。听说Oracle主键设置占用更多内存,并影响性能。如果我们在使用jpa时,使用带有@Id注解的技术键,并在表中适当地建立索引,是否有助于克服这些内存问题呢?

英文:

Is it possible to have database tables without primary key? I am using spring-data-jpa and my database is oracle. Heard Oracle primary key set up takes more memory and it impacts performance. If we are using jpa a technical key annotated with @Id and indexed properly in the table will help to over come such memory issues ?

huangapple
  • 本文由 发表于 2020年4月9日 20:58:12
  • 转载请务必保留本文链接:https://java.coder-hub.com/61121736.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定