Skip to content

Multiple Employee/User Records Being Returned When Single Is Expected #116

@StrangeWill

Description

@StrangeWill

Was prototyping some automation using this gem and ran into a weird issue:

[29] pry(main)> ::SugarCRM::User.all(conditions: { user_name: "StrangeWill" }).count                           
=> 1128

Query also takes like a couple minutes. It's running on SugarCRM's cloud, really odd, it's like it's pulling a record for every related record to the user (call, lead, opportunity, etc).

Same result on the SugarCRM.connection.get_entry_list call.

Ideally I'd like to do a User.all(conditions: { user_name: "= 'a' OR 'b' OR 'c' }) type setup. may just end up doing multiple User.firsts and looking up each user individually.

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