Mobius icon indicating copy to clipboard operation
Mobius copied to clipboard

cnf field in lookup table

Open beaver71 opened this issue 7 years ago • 2 comments

Since cnf (contentInfo) is a field only for CIN (contentInstance) why there is a cnd field also in "lookup" table? As a consequence if you try to create a CIN resource specifying cnf field, then it is created with cin.cnf = null.

beaver71 avatar Oct 02 '17 06:10 beaver71

Checking the code of sql_action.js you can see cnf field as argument in insert_lookup:

exports.insert_lookup = function(ty, ri, rn, pi, ct, lt, et, acpi, lbl, at, aa, st, mni, cs, cnf, sri, spi, callback)

but it is never used in the SQL statement.

beaver71 avatar Oct 18 '17 09:10 beaver71

you are right. lookup tabel is about universal and common attribute in oneM2M spec. Rest of the table is about each resource. The reason for add cnf to lookup is for reduce time of access database in first. but not use this. it's just remaining. it'll be remove later.

IoTKETI avatar Feb 13 '18 04:02 IoTKETI