Skip to content

Question: Should we be counting resources from relations under the total count? #114

@erezrokah

Description

@erezrokah

We count the total number of resources including relations:

totalResources += rel.Resolve(ctx, meta, syncTime, resource, resolvedResources)

However when we print it we use the top level table name:

p.logger.Info().Str("table", table.Name).Int("total_resources", totalTableResources).TimeDiff("duration", time.Now(), tableStartTime).Msg("fetch table finished")

Which can be confusing as if the user takes the name of the table from the logs and run a count on the database, they might experience a different number of resources.

Should we only consider top level resources in the count? Maybe find a better way to print the count?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions