themlc / bwarm-data-load Goto Github PK
View Code? Open in Web Editor NEWA collection of SQL Scripts The MLC uses to load BWARM snapshots into Data Stores
A collection of SQL Scripts The MLC uses to load BWARM snapshots into Data Stores
Hello. I noticed the table unclaimed_works
contain the isrc
column as a varchar(11)
and the percentileforprioritisation
as an integer
, whereas the data in recent dump files are in fact varchar(12)
(as an ISRC should be) and float
.
To make this data run on my database server (I use Postgres so I adapted the scripts) I had to perform the following requests:
ALTER TABLE unclaimed_works ALTER COLUMN isrc TYPE VARCHAR(12);
ALTER TABLE unclaimed_works ALTER COLUMN percentileforprioritisation TYPE FLOAT;
https://github.com/TheMLC/bwarm-data-load/blob/main/MySQL/create_database.sql#L165
https://github.com/TheMLC/bwarm-data-load/blob/main/MySQL/create_database.sql#L175
I notice the same errors occur in the SQL Server create_database.sql script.
Mysql server version: 8.0.23 Homebrew
Running the create_database.sql script causes a max key length error.
I suspect this is related to declaring the FeedProvidersWorkId
as a 3000 length VARCHAR
and then attempting to set it as the primary key of the table.
Perhaps an auto-incrementing INT
would work better in this case? (What if different FeedProviders
have the same WorkId
? e.g. Spotify has The Beatles' "Penny Lane" with a WorkID
of 123
while Apple has WorkId
123
assigned to The Red Hot Chili Peppers' "Californication")
This will likely be a concern for other tables as well as they also reference 3000 length VARCHARs
as their primary keys.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.