Skip to content

Dependend Indexes #27

@pquerner

Description

@pquerner

We have a custom indexer which manages the product prices for us, but it must run before "catalog_product_price" so it may be reindexed correctly for magentos index tables.

Here comes the tricky part: it does not work with this module as it does with the default indexer.
In the default magento indexer you could add a xml depend node to your module, so your indexer may run before another indexer:

<index>
            <indexer>
                <abc>
                    <model>custommodule/indexer</model>
                </abc>
                <cataloginventory_stock>
                    <depends>
                        <abc/>
                    </depends>
                </cataloginventory_stock>
            </indexer>
        </index>

This will work if you reindex via default shell "indexer.php" but does not work with AsyncIndex.

I tried to patch it but failed as I am unsure about how the dependend indexes get their info about the events / productids (or whatever) to index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions