普通网友 2016-10-12 07:36
浏览 156

在没有sql的记录结果中搜索%LIKE%

Im using an ORM - Eloquent for my db queries. I have a table with 17M records and 4 indexes in there. Everything is fine and fast. However I have 6-7 fields that are VARCHAR and needs to be searched with %LIKE%. Basically the steps are: 1.Search the 17M table by indexes and retrieve about 20k rows. 2.From that result search a single string into all record's fields and return the ones which success.

The question is what to be used for step 2 for best performance and realization. Im thinking of using sphinx or elastic search but dont know how fast its going to be.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大