Skip to content

ActiveRecord is slow when use where condition. #11

@dmitriybelyy

Description

@dmitriybelyy

ActiveRecord is very flat and slow (if we have many records at redis hash) when we try get with where condition.
For example:

RedisModelAR::find()
->where(['login' => $login])
->one();

Because when go to findByPk use HGETALL.

What about rewrite logic at ActiveQuery with HMGET etc. for best performance ?
And fields(AR attributes) store as hash field redis(hmset) not json or serialize.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions