Gem redis-search 0.9.6 released

huacnlee · April 01, 2014 · Last by miclle replied at April 02, 2014 · 2268 hits

最近一些项目跟多的接触 Redis 大批量的写入的工作,收获一些经验,回头看之前 redis-search 的写法,发现有许多地方可以改进的,于是今天早上改进了一下。

本次更新主要是优化索引信息创建的效率,之前很多动作都是一个一个 redis 命令独立提交的,现在尽可能的讲他们放到同一个 Pipeline 里面。

https://github.com/huacnlee/redis-search

测试了一下效果:

## Before

      user           system    total           real
Index 1,000 items   2.160000   0.820000   2.980000 (  4.633564)


## After (0.9.6)

      user          system      total        real
Index 1,000 items  0.780000   0.070000   0.850000 (  0.851309)

性能提升有点大

鼓掌!两年前用了您的 redis-search,没想到一直到现在都在维护,加油!

快了很多

##Before(0.9.5)
Indexed 3067047 rows | Time spend: 16273.795951065s
Rebuild Index done.

##After(0.9.6)
Indexed 3193919 rows  |  Time spend: 7771.166169973s
Rebuild Index done.
You need to Sign in before reply, if you don't have an account, please Sign up first.