# Data Service search in Customer module is slower compared to lucene search

**URL:** <https://forum.litium.com/t/data-service-search-in-customer-module-is-slower-compared-to-lucene-search/1051>\
**Category:** Questions\
**Created:** [August 27, 2019, 8:31am UTC](https://forum.litium.com/t/data-service-search-in-customer-module-is-slower-compared-to-lucene-search/1051 "2019-08-27T08:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [August 27, 2019, 8:31am UTC](https://forum.litium.com/t/data-service-search-in-customer-module-is-slower-compared-to-lucene-search/1051/1 "2019-08-27T08:31:25Z")

</div>

Data Service search in Customer module is slower compared to lucene search, is there any best practice we should follow

Litium version: \_[Version number]\_7

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [August 27, 2019, 11:43am UTC](https://forum.litium.com/t/data-service-search-in-customer-module-is-slower-compared-to-lucene-search/1051/2 "2019-08-27T11:43:15Z")

</div>

DataService is hitting the DB directly and Lucene search is getting information from cache. If using DataService on public site make sure you cache the result so no unnecessary hit to DB next time.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [September 24, 2019, 11:44am UTC](https://forum.litium.com/t/data-service-search-in-customer-module-is-slower-compared-to-lucene-search/1051/3 "2019-09-24T11:44:54Z")

</div>

Closed on September 24, 2019, 11:44am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
