{"id":19746303,"url":"https://github.com/matz1979/postgre","last_synced_at":"2026-04-12T13:08:21.625Z","repository":{"id":120439454,"uuid":"235596688","full_name":"matz1979/postgre","owner":"matz1979","description":"My Postgres  project","archived":false,"fork":false,"pushed_at":"2020-04-07T19:02:29.000Z","size":553,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T20:49:10.373Z","etag":null,"topics":["database","etl","postgres","postgresql","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matz1979.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-22T14:58:19.000Z","updated_at":"2020-04-07T20:51:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d18e257-1c0d-49d9-b50b-4dde3929835d","html_url":"https://github.com/matz1979/postgre","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matz1979%2Fpostgre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matz1979%2Fpostgre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matz1979%2Fpostgre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matz1979%2Fpostgre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matz1979","download_url":"https://codeload.github.com/matz1979/postgre/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241077233,"owners_count":19905726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","etl","postgres","postgresql","python"],"created_at":"2024-11-12T02:14:03.594Z","updated_at":"2026-04-12T13:08:21.572Z","avatar_url":"https://github.com/matz1979.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database for a music streaming plattform\n\nThe startup has currently saved the data from its app locally as .json files.\nJson files are more difficult to analyze and manipulate, storing the data in a database makes it easier. So that your Data team can quickly extract the data and analyze the behaviors of the users.\n\n## Why I choice a SQL Database\n\nThe APP generate always the same data\nNew data can be add easy with a copy command\nalso the data team can access and manipulate the data with simple SQL queries.\n\n## How to use and explain the files\n\n* Run the ```create_table.py``` to create the database and the tables, that are located in the ```sql_queries.py```.\n\n* Run the ```etl.ipynb``` to extract the first row of the dataset and beginn the ETL process.\n\n* With the ```test.py``` you can check if all tables are complete\n\n* Run the ```etl.py``` to load the whole dataset into the database.\n\n## The Star schema of the database\n\nThe Star schema is a simple database schema consists of fact and dimension tables that perform well.\nIn this schema for the Sparkify DB is the fact table songplays and it has four dimension tables named:\n\n* songplays facttable were stored all ID\\`s (songplay_id, user_id, artist_id, ...) Primary key column songplay_id.\n\n* time were stored all time data (hour, day, month, ...) Primary key column start_time.\n\n* users were stored all user data (first name, lastname, ...) Primary key column user_id.\n\n* songs were stored all song data (title, year, ...) Primary key column song_id.\n\n* artist were stored all artist data (name, location, ...) Primary key column artist_id.\n\n![Sparkify Database Schema](sparkify_schem.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatz1979%2Fpostgre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatz1979%2Fpostgre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatz1979%2Fpostgre/lists"}