Skip to content

Models hang when trying to access a resource with an ID that does not exist. #1

@dlochrie

Description

@dlochrie

If you go to http://your-url.com/users/45 and there is no user with the ID of 45, then the app will hang and eventually timeout trying to find it.

Also affected our model associations... so if you have a comment with the ID of 5, and it belongsTo a User with an ID of 2, and there is no user with an ID of 2, your page/view will timeout as the App looks for the association.

This happens in MySQL, and I haven't checked in redis, so I don't know if this a known JugglingDB issue, or the MySQL adapter for JugglingDB. The best I can do in the meantime is to Cascade Delete all related models so that these issues don't happen.

Anyone know of a proper way to fix this, or have any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions