Contact Us

Both front-end (SuiteCommerce) and back-end (SuiteScripts) code often require searches. Here are three tips on speeding up your searches.

Tip 1: Only Get the Data You Need

Be sure not to add unnecessary columns to your search queries, and add all appropriate filters so that you get the exact results you require. Larger searches slow down your script, slow down network traffic, and are generally considered poor code.

 

Anchor Group Assessment
Contact Us

Is NetSuite right for you?

Six honest questions. We'll tell you straight - even if it's "not yet."

Question 1 / 6 Size
Your verdict
A strong fit

 

Tip 2: Only Get the Data When You Need It

Make sure you are running searches only where and when you need the data. For example, nest searches inside conditionals when applicable to make sure they only run in the context you need them to. Also, in the front end, be sure to run searches right before they are needed and not any earlier. For example, if you are displaying a table of search results, do not make an HTTP request for the results until the view displaying them is about to render.

Tip 3: Use Pagination When You Can

Pagination can substantially reduce a search query's run time, especially for SuiteCommerce. If you ever expect to display (in an extension or Suitelet) more than 20 results at a time, it is highly recommended that you build pagination into your code.

Want to learn more about speeding up searches? Check out this full tutorial article on Speeding Up a Saved Search in NetSuite by Splitting It.


Got stuck on a step in this article?

We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes, there is a related feature to enable or a field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!

Oracle NetSuite Alliance Partner & Commerce Partner

Hopefully, this post gives you something to work with while trying to understand NetSuite and what it can do for your business. If you have general questions about NetSuite, feel free to contact us at any time.  Anchor Group is a certified Oracle NetSuite Alliance Partner & Commerce Partner, and is equipped to handle all kinds of NetSuite and SuiteCommerce projects, large or small!

Horizontal Anchor Group logo orange anchor icon navy Anchor Group text

Related Articles

NetSuite Optimization: 10 Tips to Speed Up Performance

Organizations that routinely optimize their NetSuite environments experience significantly faster processes and reduced operational complexity. Yet as businesses scale and customizations accumulate, even the most robust ERP system can grind to a halt. If your team is waiting on slow page loads, sluggish saved searches, or lagging transactions, it's time to take action. Whether you're managing NetSuite optimization in-house or working with partners, these strategies will help you reclaim system performance. We analyzed recommendations from 10+ NetSuite solution providers, official Oracle documentation, and real-world implementation case studies to identify the most impactful performance optimization strategies. From quick wins any admin can implement today to strategic improvements requiring developer expertise, here's how to make your NetSuite instance faster.

Read the Article A netsuite developer motioning to his open laptop while a netsuite consultant holds an iPad nearby.

Lindemann | SuiteCommerce Success Story

Lindemann is an authentic, down-to-earth, American company that has become a true force to be reckoned with in the chimney supplies market. Although doubtless most of that success is due to their own hard work and innovation, they also attribute much to the benefits offered by SuiteCommerce.

Read the Article Two men shaking hands with the Lindeman Chimney Company logo in the background, symbolizing partnership and collaboration.

Tagged with Training