Code Monkey home page Code Monkey logo

poi-php-onix-importer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

poi-php-onix-importer's Issues

Create MongoDB Index on RecordReference

Since lib/ONIXMongoStore.php's store() method calls MongoDB's findOne() by RecordReference, there should be an index created for it, otherwise, MongoDB has to do a full scan of every record to search for that RecordReference before any ONIX record can be inserted/updated. The easiest thing would probably be to add a call to $this->collection->ensureIndex('RecordReference') in ONIXMongoStore::__construct().

Two other quick points:

  1. It would also be faster to make $oms (the ONIXMongoStore instance) be a global variable in bin/importXML.php, since right now it has to reconnect to MongoDB for every ONIX product.
  2. bin/importXML.php is expecting $oms->store() to return a 1 or 2, but store() returns an array.

Thanks,
Paulie

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.