datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
Jiezhen Yi 2021-05-26T00:32:14.110700Z

Hi, I am trying to add schema/deprecated to my schema definition following this instruction here https://blog.datomic.com/2017/01/the-ten-rules-of-schema-growth.html . Something like

{:db/ident :some/identifier,
  :db/valueType :db.type/boolean,
  :db/cardinality :db.cardinality/one,
  :db/doc "Some doc",
  :schema/deprecated true}
But got the following
Exception in thread "main" clojure.lang.ExceptionInfo: Unable to resolve entity: :schema/deprecated {:cognitect.anomalies/category :cognitect.anomalies/incorrect, :cognitect.anomalies/message "Unable to resolve entity: :schema/deprecated", :entity :schema/deprecated, :db/error :db.error/not-an-entity, :dbs [{:database-id "datomic:<dev://datomic-transactor:4334/my-db?password=pksd-datomic>", :t 7388, :next-t 7390, :history false}]}
Am I doing something wrong? Thanks!

futuro 2021-05-26T01:08:02.112200Z

It looks like you need to define the schema/deprecated attribute. Once there’s a schema for it in the db you should be able to use it when defining/adding attributes to existing schema entities.

👍 1
tatut 2021-05-26T05:12:52.112500Z

thanks for this, it seems the d/index-range with take-while and filter was fast enough for my purposes at this time… will put heavier GIS data into PostGIS eventually that can do more geo searches

2021-05-26T21:19:24.116100Z

If anyone has a suggestion on my current datomic cloud issue i would love to hear it. I'm currently just googling around the issue waiting for inspiration to strike. https://forum.datomic.com/t/how-to-troubleshoot-that-my-local-web-handler-correctly-returns-the-payload-status-body-etc-but-deployed-api-gateway-warpped-function-doesnt/1844/2

futuro 2021-05-26T21:36:39.116300Z

I dropped some debugging tips in that thread, I hope they help!

2021-05-26T21:49:08.116600Z

thanks. ill give it a try. I need to even take minute and understand how to setup and read the logs...

futuro 2021-05-26T21:55:15.116800Z

Best of luck!

kenny 2021-05-26T23:11:47.117800Z

I see there's a new version of client-cloud (0.8.113) on Maven. In general, we should not update to versions not posted on the https://docs.datomic.com/cloud/releases.html#current page, correct?

alexmiller 2021-05-26T23:45:56.118200Z

Do you feel .... lucky?