Giter Club home page Giter Club logo

Comments (10)

TivoSoho avatar TivoSoho commented on July 23, 2024

I understand it was meant to be like that, since you do have this:

        if (false === $this->getLockInstance()) {
            return parent::isLocked();
        }

What you fail to realize here is that you have overridden the parent variable for false - so of course this will fail as you cannot call isLockExists() on false. :)

from magento-fastindexer.

SchumacherFM avatar SchumacherFM commented on July 23, 2024

Thanks for spotting that! Never relealized it because of having no tests 8-)

Would you mind sending me a PR?

from magento-fastindexer.

TivoSoho avatar TivoSoho commented on July 23, 2024

Sorry, don't know what PR is/means.

Btw, also due to the value "false", disabling it also breaks everything as again - cannot call functions on false.

from magento-fastindexer.

TivoSoho avatar TivoSoho commented on July 23, 2024

Some background as to why we need it: we have a huge price index table - over 4 million records that it inserts. And of course as such we have a lot of failed transactions during indexing. I had a similar idea to yours on how to minimize that time to mere fractions. So if your code works that would be perfect - it is better, much more advanced and it would take me forever to code my own idea. :)
We are using Magento 1.9.1.0

from magento-fastindexer.

SchumacherFM avatar SchumacherFM commented on July 23, 2024

PR means Pull Request. https://help.github.com/articles/using-pull-requests/

The fast indexer is only useful for a full reindex. partial reindexing can never be supported.

I would be happy to merge your changes into this repository.

from magento-fastindexer.

ross-ritchey avatar ross-ritchey commented on July 23, 2024

Don't want to go through the process of setting up a branch to create a pull request for this one....

This issue is fixed by removing the:

$this->_lockInstance = false;`

From:

$userModel = Mage::getStoreConfig('fastindexer/indexer/lock_model'); if (true === empty($userModel) || false === $this->getFiHelper()->isEnabled()) { $this->_lockInstance = false; return false; }

This change needs tested - but on my 1.9.2.4 setup everything seems to be working good.

from magento-fastindexer.

SchumacherFM avatar SchumacherFM commented on July 23, 2024

I'm not sure if that fixes it. There needs to be also some compatibility with older versions.

from magento-fastindexer.

gjhilderink avatar gjhilderink commented on July 23, 2024

When i disable the:

$this->_lockInstance = false;

I get a new error on line 136, Call to undefined method Mage_Index_Model_Lock::isLocked()

I am also using magento 1.9.2.4

from magento-fastindexer.

mverstegen avatar mverstegen commented on July 23, 2024

I had the same problem, you need to look in the core_config_data table on path "fastindexer/indexer/lock_model" and set it to "db". After that it is working perfect for me so far...

@SchumacherFM i'm also the dnd path url extension, is your module overruling the complete rewrite logic or is it using the one already exist?

from magento-fastindexer.

SchumacherFM avatar SchumacherFM commented on July 23, 2024

No idea :-(

from magento-fastindexer.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.