Graph[WARNING] Performing a FindObject on a BASIC attribute (10)

22 views
Skip to first unread message

Frank Smith

unread,
Mar 8, 2016, 2:18:47 PM3/8/16
to Sparksee
Hi,
what does this warning mean?
Graph[WARNING] Performing a FindObject on a BASIC attribute (10)

Is something related for example to this?

      relType = graph->NewEdgeType(RelationshipType, CNode, CNode);
      RSText = graph->NewAttribute(relType, L"RSTEXT", String, Basic);
      RDataset = graph->NewAttribute(relType, L"RDATASET", String, Indexed);

      attr_t RSTextId = graph->FindAttribute(relType, L"RSTEXT");
       std::wcout << "RSTextId= " << RSTextId << std::endl;
       value->SetString(RelSurfaceText);

If this is the case, is there a better and safer way to check if the attribute L"RSTEXT" is already present for the specific edgeType?

Frank

c3po.ac

unread,
Mar 9, 2016, 4:43:17 AM3/9/16
to Sparksee
Hi,

The warning means that you are using a method (in this case FindObject) that's performing a search by value in a BASIC attribute. If the attribute is set as BASIC it will not be indexed, so a search by this attribute can be slow. The warning is raised just to make you reconsider indexing the attribute if you really need to search specific values often.

Best Regards,

El dimarts, 8 març de 2016 20:18:47 UTC+1, Frank Smith va escriure:

Frank Smith

unread,
Mar 9, 2016, 8:27:44 AM3/9/16
to Sparksee
Thank you.
Frank
Reply all
Reply to author
Forward
0 new messages