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?