Is it possible to retrieve all the models’ ids based on collection filters without loading the collection itself?

  • You can use getSelect() to retrieve the current collection db select with all the filters applied. You can just tweak it by resetting the columns part and specifying the model’s id field instead
  • Yes, you can use getAllIds() that will return all model id field values
  • Yes, you can use getModelIds() that will return all model id field values
  • No, it is impossible

Отсюда тупой индус скопировал, бля… magento.stackexchange.com/questions/9105