Hello @markmegerian can you please guide me on these
-
I have a Model vertex and I set a attribute name params in Model Vertex and there type is MAP key contains string and value also contains string
model_id: "1"
model_name: "Merchandise Promotion & Recommendation"
params: {“marketing factor”: “high”, “merchandising factor”: “True”, inventory count: “0”}1st priority: I want to set up the values of Mixture of Int and string params: {"marketing factor": "high", "merchandising factor": "True", inventory count: 0} In this Inventory count i want to pass in INT format and all remaining are in string. 2nd priority I want to give the values in this style: params: [ { "marketing factor": "high", "htmlType": "textBox", "dropDownItems": [{ "label": "Total Spend", "value": "total_spend" }, { "label": "Total Customers", "value": "total_customers" } ] }]
-
I am doing like this in my GSQL
CREATE QUERY runmodel(STRING modelName) FOR GRAPH clientA_analytics {
start = {Model.*}
get_last_id = select s from start:s ORDER BY s.model_id DESC LIMIT 1
new_id = get_last_id + 1
INSERT INTO Model (PRIMARY_ID, model_name)
VALUES (new_id, modelName)How can we make new object with an (auto increment ID unique reference)
in this GSQL ? -
I already created INTERPRETED query in backend , when I want to moderate the conditions (add or remove) on a certain criteria of my Front end application, when Front end trigger the API , I created or Add or remove the conditions according to the user chose the criteria, for this way interpret query is better works
and 2nd terminology we have to create the Query in the TigerGraph Studio and call in our backend in this way
tiger.call_installed_query(“test_checks”, {})is there anykind of performance issue if we are following the 2nd terminology way
I mean if we run the query in interpret mode from our backend is this will take a lesser time as compare to tiger.call_installed_query(“test_checks”, {}) in backend or vice versa?