# How to avoid limit in pull when wildcard \* is used

**URL:** <https://forum.datomic.com/t/how-to-avoid-limit-in-pull-when-wildcard-is-used/2091>\
**Category:** General\
**Created:** [June 7, 2022, 1:31pm UTC](https://forum.datomic.com/t/how-to-avoid-limit-in-pull-when-wildcard-is-used/2091 "2022-06-07T13:31:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolayandr](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/nikolayandr/32/375_2.png) [@nikolayandr](https://forum.datomic.com/u/nikolayandr)\
**Post date:** [June 7, 2022, 1:31pm UTC](https://forum.datomic.com/t/how-to-avoid-limit-in-pull-when-wildcard-is-used/2091/1 "2022-06-07T13:31:54Z")

</div>

The doc [Datomic Pull | Datomic](https://docs.datomic.com/on-prem/query/pull.html) says `In the absence of an explicit limit, pull will return the first 1000 values for a cardinality-many attribute.` But anyway `:limit` can’t be used with a wildcard \*, so is there any solution how to tell datomic to return all values for many attributes.

Yes, at first glance the solution may be to explicitly indicate the name of the attributes instead of the wildcard `*`, but therefore the wildcard `*` is used that the names of the attributes are not known

`

---

<div class="post-metadata">

**Author:** ![Robert-Randolph](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/robert-randolph/32/545_2.png) [@Robert-Randolph](https://forum.datomic.com/u/Robert-Randolph)\
**Post date:** [June 8, 2022, 1:50pm UTC](https://forum.datomic.com/t/how-to-avoid-limit-in-pull-when-wildcard-is-used/2091/2 "2022-06-08T13:50:30Z")

</div>

> [@nikolayandr](#):
>
> so is there any solution how to tell datomic to return all values for many attributes

No.

I would suggest looking into [index pull](https://docs.datomic.com/on-prem/query/index-pull.html).

---

<div class="post-metadata">

**Author:** ![nikolayandr](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/nikolayandr/32/375_2.png) [@nikolayandr](https://forum.datomic.com/u/nikolayandr)\
**Post date:** [August 30, 2022, 10:01am UTC](https://forum.datomic.com/t/how-to-avoid-limit-in-pull-when-wildcard-is-used/2091/3 "2022-08-30T10:01:42Z")

</div>

But how index pull can be used to get an entity by specific id?
