Giter Club home page Giter Club logo

Comments (2)

pdowler avatar pdowler commented on July 29, 2024

Is this because multiple copies show up during the AD migration phase? (cache to permanent storage)

from storage-inventory.

pdowler avatar pdowler commented on July 29, 2024

First thing to fix:

The Iterator must be in order of StorageMetadata (can't believe I missed this earlier)... so the query needs an ORDER BY. I would suggest logging into sybase and looking at the query plan to see if "ORDER BY uri" or "ORDER by archive, filename" (column names?) is different and which is better. This would not effect an initial bulk load but will cause a subsequent run of tantar to fail horribly because it does a merge join of two iterators and relies on ordering.

Two possible fixes for the duplicate issue:

  1. since there is an ORDER BY (!) it might be OK to do SELECT DISTINCT: Check query plan with and without to see if it changes in a meaningful way.
  2. since there is an ORDER BY, a duplicate StorageMetadata will be next() to the identical one so the iterator could track the previous returned value and skip duplicates... I'd probably do this because sending extra rows from sybase to the java code is cheap and it has to work.

from storage-inventory.

Related Issues (20)

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.