Using delve to Debug Golang Programs

When I first started writing Golang, I was always looking for a convenient debugging tool. Back then, I came across documentation about using gdb to debug and also tried delve,…

September 16, 2019 · 3 min · 613 words · Jack Yu

How to Deploy a Shadowsocks Server

There are multiple versions of the Shadowsocks server side implementation. The original version was written in Python, and later, enthusiasts implemented it in various programming…

September 27, 2018 · 2 min · 305 words · Jack Yu

How Immediate is Golang's Panic

Let’s first look at the following code snippet:

July 26, 2018 · 2 min · 238 words · Jack Yu

How TiDB Implements the INSERT Statement

In a previous article “TiDB Source Code Reading Series (4) Overview of INSERT Statement”, we introduced the general process of the INSERT statement. Why write a separate article…

July 11, 2018 · 11 min · 2221 words · Jack Yu

How to Use HAProxy to Test CockroachDB

yum install haproxy is effective for CentOS 7. After installation, you can start the service using systemctl start haproxy. But don’t rush yet.

July 10, 2018 · 2 min · 301 words · Jack Yu

How to Test CockroachDB Performance Using Benchmarksql

First of all, TPC-C is the de facto OLTP benchmark standard. It is a set of specifications, and any database can publish its test results under this standard, so there’s no issue…

July 6, 2018 · 3 min · 603 words · Jack Yu

How to Test CockroachDB Performance Using Sysbench

CockroachDB uses the PostgreSQL protocol. If you want to use Sysbench for testing, you need to enable pg protocol support in Sysbench. Sysbench already supports the pg protocol,…

June 11, 2018 · 3 min · 600 words · Jack Yu

How to View CMU DB Group's OLTP-Bench

OLTP-Bench is an open-source benchmarking tool platform for OLTP scenarios from CMU’s DB Group. It was designed to provide a simple, easy-to-use, and extensible testing platform.

February 23, 2018 · 4 min · 845 words · Jack Yu

How to Use Monospaced Fonts in VS Code

The English font set in Microsoft’s VS Code is monospaced, while the Chinese font is not.

December 26, 2017 · 1 min · 61 words · Jack Yu

How to Understand F1's Schema Change

The DDL paper on F1 serves as the foundation for TiDB’s DDL implementation. There are two main papers on F1: one provides an overview of F1’s DDL, and the other specifically…

December 25, 2017 · 5 min · 920 words · Jack Yu