Code Monkey home page Code Monkey logo

Comments (4)

SurfaceS avatar SurfaceS commented on July 19, 2024 1

fixed in 2c3a7c5

Thanks to found it.

from universalmediaserver.

ik666 avatar ik666 commented on July 19, 2024

You're welcome.

After looking at the table, I'd propose to modify the primary key of AUDIOTRACKS using the tuple (FILEID, ID) leaving LANG out. The two SQL statements in the supporting class are using only "FILEID" and "FILEID, ID" as parameter.

from universalmediaserver.

SurfaceS avatar SurfaceS commented on July 19, 2024

I think that was for video file audiotrack language to allow same file and id with different lang ? IDK

from universalmediaserver.

ik666 avatar ik666 commented on July 19, 2024

I don't mind the LANG field! I think indexes have to match the query to be taken into account.

  • One query has as WHERE parameter fileid and will use the index generated by the FOREIGN_KEY constraint.
  • The other query stepping through the audiotracks uses fileid and ID and will most likely not match the PRIMARY_KEY constraint because the index spans over 3 fields (fileid, id, lang).

I proposed to change

CONSTRAINT + TABLE_NAME + PK_MARKER + PRIMARY_KEY + "(" + COL_FILEID + COMMA + COL_ID + COMMA + COL_LANG + ")" + COMMA +

into

CONSTRAINT + TABLE_NAME + PK_MARKER + PRIMARY_KEY + "(" + COL_FILEID + COMMA + COL_ID + ")" + COMMA +

from universalmediaserver.

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.