Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using
findCreateFind
instead of using findOrCreate
`findOrCreate` does the select and insert (if necessary) in a transaction. For the purpose of sequelize store set, this is probably not required as updating the same session concurrently in more than one request might not be applicable. Using `findOrCreate` has shown a high memory usage and potentially crashing the DB under postgres, as sequelize uses temp functions setup transactions and trace any failures. This change is to use the more performant non-transactional `findCreateFind` function.
- Loading branch information