Change Password

Input error
Input error
Input error
Submit

Change Nickname

Current Nickname:
Submit
Search
v4.0
    v4.0

    Batch Insert

    High-Performance API

    // insert 10000 nodes to a schema
    schema := &structs.Schema{
        Name: "User",
        Properties: []*structs.Property{
            {
                Name: "name",
                Type: ultipa.PropertyType_STRING,
            },
            {
                Name: "age",
                Type: ultipa.PropertyType_INT32,
            },
        },
    }
    
    var nodes []*structs.Node
    
    for i := 0; i < 10000; i++ {
        newNode := structs.NewNode()
        newNode.Set("name", "demo")	// set property 'name' with string 'demo'
    	newNode.Set("age", int32(i))		// set property 'age' with integer i
        nodes = append(nodes, newNode)
    }
    
    _, err := client.InsertNodesBatchBySchema(schema, nodes, &configuration.RequestConfig{
        InsertType: ultipa.InsertType_OVERWRITE,
    })
    
    if err != nil {
        log.Fatalln(err)
    }
    

    Other APIs

    • InsertNodesBatchBySchema
    • InsertNodesBatch
    • InsertNodesBatchAuto
    • InsertEdgesBatch
    • InsertEdgesBatchBySchema
    • InsertEdgesBatchAuto
    Please complete the following information to download this book
    *
    公司名称不能为空
    *
    公司邮箱必须填写
    *
    你的名字必须填写
    *
    你的电话必须填写
    *
    你的电话必须填写