GORM增加sqlcommenter特性
什么是sqlcommenter? sqlcommenter is a suite of middlewares/plugins that enable your ORMs to augment SQL statements before execution, with comments containing information about the code that caused its execution. This helps in easily correlating slow performance with source code and giving insights into backend database performance. In short it provides some observability into the state of...
源码分析:GORM是如何生成sql的
在gorm下实现sqlcommenter过程中,遇到一些问题,顺便把gorm整个流程梳理了一遍,整理记录一下。 gorm使用示例 package main import ( "gorm.io/driver/mysql" "gorm.io/gorm" )...
工银亚洲网银密码重置
18年的时候办了张工银亚洲的银行卡,好几年没有用过了。 今年想起来了,发现网银登不上了,密码忘了。 最悲剧的是,试了超过10次,账户冻结了。 打9...
加速Cloudflare访问
背景 这是当前的博客架构,文件保存在Github仓库,通过Cloudflare Page提供访问。 众所周知,在国内,Cloudflare的CDN...
2023年终总结
2023年过完了,是时候来个总结了。 博客 2023年一共更新了15篇内容,共计12000字。 访问Top3的文章: 将博客部署到星际文件系统(IP...
2023年12月北京暴雪记录
记录暴雪下普通打工人的生活。 12月14日 周四 北京的雪已经连着下了两天了。 12月11日,也是因为下雪,晚上打车打到10点半才叫到车。 所以这次下...
使用Hugo实现响应式和优化的图片
继续我们的博客优化之旅,本篇内容我们将介绍如何使用Hugo实现响应式和优化的图片。 问题 在之前文章里,通过腾讯云数据万象实现了图片优化能力,具...
加速Google Analytics
起因 Google Analytics是一款优秀的流量分析服务,集成方便,使用简单。 最近在优化页面访问速度,发现Google Analytics是一个优化点...
使用Google Indexing API加速博客收录
对于一个新站点来说,总是想着能让搜索引擎快点收录网站内容。 今天,我们就来介绍一种利用Google Indexing API接口,通过Github Actions...
在Netlify上部署Twikoo评论系统
在本篇文章里,我会介绍如何在Netlify上部署Twikoo评论系统,如何接入到静态博客Hugo,以及如何实现Twikoo系统版本自动更新。...