Skip to content

Incorrect edge counts #312

@Jurgen-Aquilina

Description

@Jurgen-Aquilina

ArcadeDB 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)

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions