Skip to content

Are Contentful::File instances bloated? #224

@0xStarcat

Description

Hello,

I noticed a potential issue when I was trying to debug a slow cache retrieval.

I accessed an instance of Contentful::Asset and called .file on it. The call returned a gigantic wall of text (longer than my console limit) which seemed entirely composed of references to other assets and entries in my contentful space. If these references are being cached / loaded, this could be a huge problem and maybe why my cache retrievals are slow.

Do you have any idea what this wall of references might be?

Using 2.13.3 of the gem

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