Comments (10)
No, entity id's are always generated by the server, specifically, by the database. Any @iot.id you specify in the json is ignored.
from frost-server.
Thank you for your fast reply. So the id is generated by postgre database? Do you think it is possible in principal? Is there a way to get the id of an entity one created? I couldn't find it in the response of the corresponding post request.
Thank you for your help
Johannes
from frost-server.
Yes, the id is generated by the database. In theory it's possible to allow user-generated ids, but it's a bad idea, since you lose the guarantee that generated ids are unique.
The Id is in the location header that you get in the response:
Req 33 - create-update-delete/create-entity
Upon successful completion, the response SHALL contain a HTTP location header that contains the selfLink of the created entity.
from frost-server.
from frost-server.
If you're trying to replicate a complete server then it might be a lot easier to make a database dump and import that, or use database replication.
When it comes to matching entities across servers it's better to use the metadata fields. You can add an external identifier to the properties of a Thing, and use that to find the correct Thing for your operations. We also have a branch that adds a properties field to all entities, not just Thing and Observation.
We can always talk about special feature requests.
from frost-server.
we want to sync the datastream with a Kafka system and we need unique identifiers in order to be able to restore everything from the Kafka system and to introduce redundant systems.
from frost-server.
When synchronising with external systems, the properties fields are the way to go. There you can store any information about the external system that you need.
Redundancy is best done at database level, using datebase replication.
from frost-server.
ok, thank you very much for your help. Where can i find that build with properties field for all entities?
from frost-server.
In the branch moreProperties, at the following url:
https://github.com/FraunhoferIOSB/SensorThingsServer/tree/moreProperties
from frost-server.
thank you. In the first instance we can work with this approach. After a long discussion today, we still think that we need to set id's manually later on in the project. Are you interested in a collaboration?
from frost-server.
Related Issues (20)
- Database auto-update for Basic Authentication does not work under some conditions HOT 3
- Helm chart bug: Mqtt not using external db connection string when frost.db.enableIntegratedDb is set to false HOT 4
- Server Error 500 when trying to patch a thing HOT 2
- Redirect URI not using `serviceRootUrl` HOT 3
- persistence_idGenerationMode_<ENTITY> is not applied HOT 5
- The phenomenonTime field on a MultiDatastream is updated based on the resultTimes, not the expected phenomenonTimes. HOT 1
- [Issue]SensorThings API with Tomcat 10 HOT 3
- GEOM column in Locations is sometimes created as NULL causing issues on the REST-API
- InternalMessageBus errors on fraunhoferiosb/frost-server-http HOT 5
- [Docker Image] Failed to initialize PostgreSQL DB HOT 10
- [Question]Can STA check duplicate data? HOT 1
- Disapperaing properties with empty string as value HOT 2
- Change Datastream/observationType to enum and check its values
- FROST Server very slow on large requests HOT 5
- Database is not using PhenomenonTime-Index HOT 5
- Issue With Authentication with FROST Server HOT 1
- Inconsistency in current Location of a Thing when Historical Locations are deleted or updated HOT 1
- Issue querying FROST-Server with umlauts in name HOT 4
- Query performance issues on Observations with plugins_coreModel_idType LONG HOT 3
- Using batch createObservations failed HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frost-server.