Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not allowed memory - for each with set #83

Closed
reatailret opened this issue Apr 21, 2013 · 1 comment
Closed

Not allowed memory - for each with set #83

reatailret opened this issue Apr 21, 2013 · 1 comment

Comments

@reatailret
Copy link

В множестве Rediska_Key_Set имеется больше 100000 записей.

$set=new  Rediska_Key_Set('myset');

        foreach ($set as $value) 
        {
            //do something
        }

Такой код вызывает ошибку - не хватает памяти для обработки скрипта.
Можно ли "поштучно" перебрать всё множество?

@maxgu
Copy link

maxgu commented Apr 21, 2013

Думаю дело не в редиске, а в самом редисе
http://redis.io/commands/smembers - Returns all the members of the set value stored at key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants