英文:
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 ?
专注分享java语言的经验与见解,让所有开发者获益!
评论