简体   繁体   English

Searchlogic大数据搜索

[英]Searchlogic Large Data Search

How can I optimize the search of Searchlogic in a large data(3,000+ record)? 如何优化大数据(超过3,000条记录)中Searchlogic的搜索?

Im having trouble on searchlogic searching through Users that have 3,000 records and only search the name of the user. 我在通过3,000条记录仅搜索用户名的用户的searchlogic搜索中遇到麻烦。

Probably you want to look how to optimise your database. 可能您想看看如何优化数据库。 You can create indexes for the searchable columns of your User model (the ones present in WHERE SQL clauses). 您可以为User模型的可搜索列(在WHERE SQL子句中存在的列)创建索引。 Also make sure you are not eager loading the objects and select only the needed columns instead of SELECT * clauses. 还要确保您不急于加载对象,并仅选择所需的列而不是SELECT *子句。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM