GeographicaGS / urbo-pgsql-connector

URBO PGSQL connector
GNU Affero General Public License v3.0
4 stars 5 forks source link

Variable de configuración para determinar si nos queremos traer los datos de una subscripción #31

Closed alasarr closed 8 years ago

alasarr commented 8 years ago

Actualmente cuando se crea un subscripción siempre nos traemos los datos del context broker, ahora esto se va a controlar a partir de una variable de configuración del connector.

alasarr commented 8 years ago

Esta hecha, pero tenemos el problema de los 20 registros que siempre se traen al crear la subscripción.

Es un debate en el context broker:

You may wonder why accumulator-server.py is getting this message if you don't actually do any update. This is because the Orion Context Broker considers the transition from "non existing subscription" to "subscribed" as a change.

NGSI specification is not clear on if an initial notification has to be sent in this case or not. On one hand, some developers have told us that it might be useful to know the initial values before starting to receive notifications due to actual changes. On the other hand, an application can get the initial status using synchronous queries. Thus, this behavior could be changed in a later version. What's your opinion?