在线拍卖数据库模型字段结构优化解析
1. 引言
在数据库设计中,OLTP(联机事务处理)和数据仓库数据库模型的字段结构优化是一项关键任务。以在线拍卖业务为例,需要对数据库模型的字段内容进行精细化处理,以满足业务需求和提高数据库性能。
2. OLTP 数据库模型
2.1 初始模型
在线拍卖房屋的 OLTP 数据库模型初始版本包含多个表,如 History、Listing、Category、Currency、Seller、Buyer 和 Bid 表。以下是这些表的主要字段:
| 表名 | 字段 |
| ---- | ---- |
| History | history_id, seller_id (FK), buyer_id (FK), comment_date, comments |
| Listing | listing#, category_id (FK), buyer_id (FK), seller_id (FK), ticker (FK), description, image, start_date, listing_days, starting_price, reserve_price, buy_now_price, number_of_bids, winning_price |
| Category | category_id, parent_id, category |
| Currency | ticker, currency, exchange_rate, decimals |
| Seller | seller_id, seller, popularity_rat
超级会员免费看
订阅专栏 解锁全文
1680

被折叠的 条评论
为什么被折叠?



