跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 请教一个 Mysql 表 根据需求如何设计的问题?

发表于

需求

现在我有 N 个用户,每个用户有二组数据, 基因数据,代谢数据,原始数据如下(excel 格式);

基因名称 User-1 值 User-2 值 User-n 值
jyxl-001 101010 101011 ..n
jyxl-002 201010 201011 ..n
jyxl-003 301010 301011 ..n
jyxl-... ... ... ...

代谢组名称 User-1 值 User-2 值 User-n 值
dx-001 101010 101011 ..n
dx-002 201010 201011 ..n
dx-003 301010 301011 ..n
dx-... ... ... ...

现在想把这些数据存到表里,该如何设计这个表,会有 CRUD 操作;

PS

已知初始用户,20000+位;

基因组初始数据有 1 万个,也就是表 1 里,会有 1W 行初始数据,以后每天会追加 1000 个;

代谢组,初始数据 800 个, 每天增加 100 ;

目前我想的就是,一个用户表,一个基因组表 一个代谢组表,基因组两个字段 名称 、值, 这样的话,初始数据第一个表, 就有 N(用户 初始 20000) * 10000 条; 代谢同理;

场景: 查询、导出、新增频繁; 没有删除和修改;

求大佬指点 更优雅设计;

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.