You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when an application queries for an object, all members for the object are serialized (when a serialization format is specified). Often an application will not need all members, and can thus performance could be saved by making a subselection of members.
Additionally, views could offer more sophisticated abstractions, like selecting members by tag, requesting data in a specific unit or converting to another type, which decouples the application from the underlying types of the data, and allows for more evolvable systems.
Examples:
Select members:
select * from data view x, y
Select nested members:
select * from data view start.x, start.y, stop.x, stop.y
Alias members:
select * from data view start.x as bx, start.y as by, stop.x as ex, stop.y as ey
Select members by tag:
select * from data view #latitude, #longitude
Select members, change type
select * from data view x as (string), y as (string)
Same, but shorthand:
select * from data view x as :string, y as :string
Alias members, change type
select * from data view x as cx(string), y as cy(string)
Same, but shorthand:
select * from data view x as cx:string, y as cy:string
Change unit
select * from data view temperature as (unit=celcius)
Select tag, alias member, change type and change unit
select * from data view #temperature as temp(float64, unit=celcius)
The syntax after as is consistent with the new proposal for the corto language, which means the regular string deserializer can be used to parse query strings.
The text was updated successfully, but these errors were encountered:
Currently when an application queries for an object, all members for the object are serialized (when a serialization format is specified). Often an application will not need all members, and can thus performance could be saved by making a subselection of members.
Additionally, views could offer more sophisticated abstractions, like selecting members by tag, requesting data in a specific unit or converting to another type, which decouples the application from the underlying types of the data, and allows for more evolvable systems.
Examples:
Select members:
Select nested members:
Alias members:
Select members by tag:
Select members, change type
Same, but shorthand:
Alias members, change type
Same, but shorthand:
Change unit
Select tag, alias member, change type and change unit
The syntax after
as
is consistent with the new proposal for the corto language, which means the regular string deserializer can be used to parse query strings.The text was updated successfully, but these errors were encountered: