使用clob而不是多个表

时间:2017-11-07 15:29:16

标签: sql oracle database-performance

当数据库设计对性能产生影响时,我是新手。我正在创建一个使用hibernate查询数据库的应用程序。我正在尝试为应用程序创建一个数据库模式,我对使用clobs和单独的表之间的某些数据感到困惑。我有以下表格:

Person(id, name)
Address(person_id,address(varchar2))
products_bought(person_id, product_name(varchar2))
places_visited(person_id, place_name(varchar2))
..few more tables

我确信每次都需要在所有这些表中写入/读取数据。我正在考虑以这种方式设计它们以减少表格,从而减少我需要进行的连接数量,并使hibernate能够轻松地一次性获取信息:

Person(id, name, products_bought(CLOB), places_visited(CLOB))
Address(person_id,address(varchar2))
..few more tables

现在我在网上发现了许多帖子,认为在使用CLOB时性能会受到影响。使用JOIN时也是如此。如何基于person表的行数不超过10K的事实来决定哪个更好?

0 个答案:

没有答案