上一页 1 2 3 4 5 6 7 8 ··· 96 下一页
摘要: 1.报错信息 在执行mysql添加索引sq脚本的时候报错:"Specified key wastoo long; max key length is 767 bytes"意思大概就是:需要添加索引的字段的长度太长,超过了767bytes. 2.分析原因 需要添加的索引字段如果是varchar类型,字 阅读全文
posted @ 2023-09-04 15:05 Angel挤一挤 阅读(4691) 评论(0) 推荐(1)
摘要: MySQL主从复制延迟原因及处理思路 主库DML请求频繁(TPS较大) 主库写请求较多,有大量insert、delete、update并发操作,短时间产生了大量的binlog 【原因分析】 主库并发写入数据,而从库SQL Thread为单线程应用日志,很容易造成relaylog堆积,产生延迟。 【解 阅读全文
posted @ 2023-09-01 16:29 Angel挤一挤 阅读(287) 评论(0) 推荐(0)
摘要: MySQL中 replace into是否像预期样:若表中有已经存在的数据,则把已经存在的数据删除,插入新数据? 准备数据 CREATE TABLE `test_replace` ( `id` int(11) NOT NULL AUTO_INCREMENT, `str1` char(10) DEFA 阅读全文
posted @ 2023-08-31 20:05 Angel挤一挤 阅读(172) 评论(0) 推荐(0)
摘要: MongoDB集群用于非事务文档存储场景,连接参数请勿配置 write-concern 为 majority(会大大降低集群的可用性及性能),该参数保持默认即可 禁止直接连Primary/Secondary节点,存在单点隐患,建议连接replica set server list,其具备自动fail 阅读全文
posted @ 2023-08-30 16:21 Angel挤一挤 阅读(611) 评论(0) 推荐(0)
摘要: JedisPool资源池优化 原文地址:https://tech.antfin.com/docs/2/98726 合理的JedisPool资源池参数设置能够有效地提升Redis性能。本文档将对JedisPool的使用和资源池的参数进行详细说明,并提供优化配置的建议。 使用方法 以Jedis 2.9. 阅读全文
posted @ 2023-08-30 16:15 Angel挤一挤 阅读(247) 评论(0) 推荐(0)
摘要: 现象:插入数据库中的时间与本地时间(中国标准时间UTC+08:00)相差13或14个小时。 解决方法: 在jdbc.url中加入serverTimezone=CTT 或serverTimezone=Asia/Shanghai 或serverTimezone=GMT%2B8 原因: 名为 CST 的时 阅读全文
posted @ 2023-08-30 16:11 Angel挤一挤 阅读(325) 评论(0) 推荐(1)
摘要: TCP协议可靠性保证,依赖的三个定时器 1.Retransmission Timer To retransmit lost segments, TCP uses retransmission timeout (RTO). When TCP sends a segment the timer star 阅读全文
posted @ 2023-08-30 14:51 Angel挤一挤 阅读(104) 评论(0) 推荐(0)
摘要: MongoDB的文档必须有一个_id键。 目的是为了确认在集合里的每个文档都能被唯一标识。 ObjectId 是 _id 的默认类型。 ObjectId 采用12字节的存储空间,每个字节两位16进制数字,是一个24位的字符串。 12位生成规则: [0,1,2,3] [4,5,6] [7,8] [9, 阅读全文
posted @ 2023-07-26 15:29 Angel挤一挤 阅读(1367) 评论(0) 推荐(0)
摘要: 今日份代码如下: var temp = "一条狗的自白 \n Conf,ess,i,ons of a dog"; var arr = temp.split(/[\n\s+,]/g); console.log(arr); 效果如下: 阅读全文
posted @ 2023-01-06 17:20 Angel挤一挤 阅读(1056) 评论(0) 推荐(0)
摘要: 今日份代码: import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang3.StringUtils; import java.io.*; import 阅读全文
posted @ 2022-12-05 13:49 Angel挤一挤 阅读(197) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 96 下一页