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!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.
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
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
I dropped some debugging tips in that thread, I hope they help!
thanks. ill give it a try. I need to even take minute and understand how to setup and read the logs...
Best of luck!
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?
Do you feel .... lucky?