Skip to content

Conversation

@dmgcodevil
Copy link
Owner

i disabled field validation for now.

@dmgcodevil
Copy link
Owner Author

  for (int i = 0; i < 1000000; ++i) {
    std::unordered_map<std::string, Value> data = {
        {"name", Value("User" + std::to_string(i))},
        {"age", Value(20 + (i % 50))},
        {"city", Value(i % 2 == 0 ? "NYC" : "SF")},
        {"salary", Value(50000 + (i * 100))}};

    db_->create_node("User", data).ValueOrDie();
  }

  // Test simple WHERE performance
  auto start = std::chrono::high_resolution_clock::now();

  Query query = Query::from("u:User")
                    .where("u.age", CompareOp::Gt, 40)
                    .and_where("u.city", CompareOp::Eq, "NYC")
                    .build();

  auto result = db_->query(query);

Output:

query took: 7764 ms
Result rows: 280002

@dmgcodevil dmgcodevil merged commit 140ddc7 into main Sep 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants