Orlion 最近的时间轴更新
Orlion's repos on GitHub
Go · 29 人关注
Gochat
wechat bot
Go · 10 人关注
hersql
通过http(s)隧道来访问Mysql
PHP · 9 人关注
Minor
A Simple PHP Web Framework
Rust · 3 人关注
minitrace
A mini trace PHP extension written in Rust
Go · 2 人关注
go-georadius
redis georadius command in golang
Go · 2 人关注
Mizar
Mizar Language
PHP · 1 人关注
Matcher
A PHP regex matcher base on NFA
Go · 1 人关注
merak
Merak is an LR(1) parser library for Go written in Go.
0 人关注
awdb-golang
www.ipplus360.com 官方支持的解析awdb格式的Golang代码(Official support for parsing Golang code in AWDB format )
PHP · 0 人关注
bbr-limiter
php自适应限流
Go · 0 人关注
bitcask
learning bitcask
Java · 0 人关注
cat
CAT 作为服务端项目基础组件,提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端,已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统等)深度集成,为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。
Go · 0 人关注
cat-agent
大众点评CAT agent
Haskell · 0 人关注
check_repeat
Check repeat words in file written in Haskell
Go · 0 人关注
godis
A Golang implemented Redis Server and Cluster. Go 语言实现的 Redis 服务器和分布式集群
Go · 0 人关注
goleveldb
leveldb学习
0 人关注
gorm
GORM V1, V2 moved to https://github.com/go-gorm/gorm
Go · 0 人关注
intcache
A Golang thread-safe lock-free uint32 cache that supports LRU for specific scenarios
0 人关注
lotusdb
Most advanced key-value database written in Go, extremely fast, compatible with LSM tree and B+ tree.
Go · 0 人关注
MIT6.824-2022
MIT6.824-2022
Assembly · 0 人关注
popcnt
Improve popcnt performance by using simd instructions
Go · 0 人关注
rosedb
Lightweight, fast and reliable key/value storage engine based on Bitcask.
Rust · 0 人关注
rsblog
A mini blog system written in rust
Orlion

Orlion

🏢  后端工程师
V2EX 第 212136 号会员,加入于 2017-01-24 18:22:01 +08:00
Orlion 最近回复了
@a33291 所有客户端都可以连上。确实需要内网有一台机器能暴露 http 端口,我们是在内网有一台机器,被 nginx 监听,我用 nginx 转发请求到内网的 hersql transport 服务上。
跟我司开发环境差不多,专门写了个用 http 转发 mysql 包的工具方便从本地连接测试环境的 mysql 。大概原理就是在本机伪装出一个“假 mysql server”,本机 mysql client 连接到本地的假 mysql server ,然后这个假 mysql server 将数据包通过 http 转发到测试环境的一台机器上,这台机器将数据包转发给真正的 mysql server 。

https://github.com/Orlion/hersql

不知道能否解决你的问题
leetcode 338 原题,动态规划的转移方程:bits[i] = bits[i >> 1] + (i & 1)。
https://blog.fanscore.cn/ 更新的不多,但追求高质量
https://blog.fanscore.cn/a/51/ 看下我这这篇文章吧,不知道对你有没有帮助,大概思路是取出一个坐标点附近九宫格所有坐标点,然后在程序中计算每个点距离该坐标点的距离,过滤掉不符合距离条件的点。

虽然文章中使用的是 redis ,但换成 mysql 应该是通用的吧。
1. 依靠索引列缩小扫描行数后再进行复杂查询
2. 查备库
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1900 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.