# Limit Loops

Always use `limit:` when you don't need all items. Unbounded loops are the #1 Liquid performance issue.

```liquid
{% comment %} BAD: iterates entire collection {% endcomment %}
{% for product in collection.products %}
  ...
{% endfor %}

{% comment %} GOOD: only what you need {% endcomment %}
{% for product in collection.products limit: 8 %}
  ...
{% endfor %}
```

Also applies to `for` over arrays, recommendations, and search results.
