🗄️ 数据库与存储
职场英语 · 程序员·技术词汇 · 共 32 个核心词汇 · 11 条场景例句
词汇表
- database /'detəbes/ n. 数据库
- DB n. 数据库
- SQL n. SQL 语言
- NoSQL n. 非关系型数据库
- table /'teibl/ v. 搁置,不加考虑
- column /'kɑləm/ n. 专栏
- row /ro/ n. (一)排,(一)行
- record /(for v.) rɪˈkɔrd; (for n. adj.) ˈrɛkɚd/ n./v. 记录;履历;记录
- index /'ɪndɛks/ n. 索引;指数;指标
- primary key n. 主键
- foreign key n. 外键
- query /'kwiəri/ n./v. 质问,疑问,询问
- join v. 加入
- transaction n. 交易
- acid /ˈæsɪd/ n./adj. 酸;酸的
- rollback n. 回滚
- commit /kə'mɪt/ v. 犯罪,承担义务
- migration /maɪˈɡreɪʃn/ n. 迁徙;移民
- schema n. 表结构/模式
- backup /'bæk,ʌp/ n. 后补,援助
- restore /rɪ'stɔr/ v. 修复
- replication n. 主从复制
- sharding n. 分片
- partition /pɑr'tɪʃən/ n. 分开,分割;隔墙
- MongoDB n. MongoDB 数据库
- PostgreSQL n. PostgreSQL 数据库
- MySQL n. MySQL 数据库
- Redis n. Redis 缓存
- ORM n. 对象关系映射
- connection pool n. 连接池
- slow query n. 慢查询
- deadlock /ˈdedlɑːk/ n. 僵局;死锁
场景例句
- Add an index to speed up the query.加个索引给查询提速。
- The migration script updated the schema.迁移脚本更新了表结构。
- This slow query is killing the database.这条慢查询快把数据库拖死了。
- Always backup before running migrations.跑迁移前一定要备份。
- The transaction rolled back due to a deadlock.事务因为死锁回滚了。
- Dev: The report page takes ten seconds to load.开发:报表页要十秒才加载出来。
- DBA: Did you check the slow query log?DBA:你看慢查询日志了吗?
- Dev: Yes, a join across three big tables.开发:看了,三张大表的联表查询。
- DBA: Add a composite index and denormalize the hot fields.DBA:加个联合索引,热点字段做反范式设计。
- Dev: Should we also add read replicas?开发:要不要再加只读副本?
- DBA: Yes, route the report queries to the replica.DBA:要,把报表查询路由到副本上。