add_study_time_indexes.sql 560 B

12345678910111213141516171819
  1. -- 为学习相关表的时间字段添加索引
  2. -- 用于优化卡管理页面的学习时间筛选查询
  3. -- 为 learn_answer 表的 create_time 字段添加索引
  4. CREATE INDEX IF NOT EXISTS idx_learn_answer_create_time ON learn_answer(create_time);
  5. -- 为 learn_examinee 表的 end_time 字段添加索引
  6. CREATE INDEX IF NOT EXISTS idx_learn_examinee_end_time ON learn_examinee(end_time);
  7. -- 为 b_customer_video_watches 表的 time 字段添加索引
  8. CREATE INDEX IF NOT EXISTS idx_customer_video_watches_time ON b_customer_video_watches(time);