GeezerVison is showing github.com — Incorrect edge counts · Issue #312 · ArcadeData/arcadedb
Incorrect edge counts #312DescriptionArcadeDB Version: 22.1.3
JDK Version: Corretto 11
OS: Windows 10
Expected behavior
Returns 250,001
Actual behavior
Returns 0 for both.
Steps to reproduce
for (i in 0..250000) {
val vertex = database.newVertex("Tester")
vertex.set("id", i.toString())
database.async().createRecord(vertex) {}
}
for (i in 0..250000) {
val vertex = database.newVertex("Software")
vertex.set("id", i.toString())
database.async().createRecord(vertex) {}
}
database.async().waitCompletion()
for (i in 0..250000) {
database.async().newEdgeByKeys(
"Tester",
arrayOf("id"),
arrayOf(i),
"Software",
arrayOf("id"),
arrayOf(i),
false,
"testerOf",
false,
true,
null
)
}
database.async().waitCompletion()
val count1 = database.countType("testerOf", true)
val count2 = database.query("sql", "SELECT COUNT(*) FROM testerOf").next().getProperty<Long>("COUNT(*)")
println(count1)
println(count2)
Activitylvca commented on Jun 13, 2023 You created all lightweight edges that have no their own identity (they are no records). The edges are still there and you can access them from vertices, but you can't query them directly.
If you need a normal edge, pass false as the 10th parameter)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|