# Why no d/squuid in datomic client api

**URL:** <https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446>\
**Category:** Client API\
**Created:** [June 2, 2018, 8:11pm UTC](https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446 "2018-06-02T20:11:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiller](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/emiller/32/167_2.png) [@emiller](https://forum.datomic.com/u/emiller)\
**Post date:** [June 2, 2018, 8:11pm UTC](https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446/1 "2018-06-02T20:11:50Z")

</div>

I’ve been upgrading to Datomic cloud and noticed that the datomic.client.api has no `d/squuid` function. I’ve been switching to use `java.util.UUID/randomUUID`.

Two questions:

1. Why is `d/squuid` not present in the datomic.client.api?
2. Is it safe to use `java.util.UUID/randomUUiD`?

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [June 4, 2018, 1:12pm UTC](https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446/2 "2018-06-04T13:12:00Z")

</div>

Squuids are no longer required in Datomic (Cloud or On-Prem) now that Datomic has Adaptive Indexing.  
See discussion from Stu [here](https://forum.datomic.com/t/general-product-questions/309/2) and blog post about [Adaptive Indexing](http://blog.datomic.com/2014/03/datomic-adaptive-indexing.html)

---

<div class="post-metadata">

**Author:** ![eneroth](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/eneroth/32/191_2.png) [@eneroth](https://forum.datomic.com/u/eneroth)\
**Post date:** [July 22, 2018, 12:51pm UTC](https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446/3 "2018-07-22T12:51:04Z")

</div>

The on-prem documentation says to prefer squuids when possible. Is this still true, or is the documentation lagging behind a bit?

[https://docs.datomic.com/on-prem/identity.html#sec-6](https://docs.datomic.com/on-prem/identity.html#sec-6)

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [July 23, 2018, 1:20pm UTC](https://forum.datomic.com/t/why-no-d-squuid-in-datomic-client-api/446/4 "2018-07-23T13:20:36Z")

</div>

Certainly, using squuids will not hurt anything, however adaptive indexing should negate the need to use squuids.

I will look into fixing the documentation.
