{"id":16980509,"url":"https://github.com/fernandocelmer/project-basic-test-sqlalchemy","last_synced_at":"2026-04-15T18:04:00.313Z","repository":{"id":60031751,"uuid":"534900702","full_name":"FernandoCelmer/project-basic-test-sqlalchemy","owner":"FernandoCelmer","description":"Test Project - POC [Python + SQLAlchemy + SQLite]","archived":false,"fork":false,"pushed_at":"2022-09-28T00:50:35.000Z","size":2755,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T20:49:57.487Z","etag":null,"topics":["python","sqlalchemy","sqlalchemy-core","sqlalchemy-orm","sqlalchemy-orm-add-all","sqlalchemy-orm-bulk-save-objects","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FernandoCelmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-10T05:24:44.000Z","updated_at":"2024-05-08T02:51:32.000Z","dependencies_parsed_at":"2023-01-19T00:15:20.370Z","dependency_job_id":null,"html_url":"https://github.com/FernandoCelmer/project-basic-test-sqlalchemy","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/FernandoCelmer%2Fproject-basic-test-sqlalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCelmer%2Fproject-basic-test-sqlalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCelmer%2Fproject-basic-test-sqlalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCelmer%2Fproject-basic-test-sqlalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FernandoCelmer","download_url":"https://codeload.github.com/FernandoCelmer/project-basic-test-sqlalchemy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244882112,"owners_count":20525803,"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":["python","sqlalchemy","sqlalchemy-core","sqlalchemy-orm","sqlalchemy-orm-add-all","sqlalchemy-orm-bulk-save-objects","sqlite"],"created_at":"2024-10-14T01:52:15.029Z","updated_at":"2026-04-15T18:03:55.282Z","avatar_url":"https://github.com/FernandoCelmer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [project-basic-test-sqlalchemy]\n\n![GitHub followers](https://img.shields.io/github/followers/FernandoCelmer?label=FernandoCelmer\u0026style=for-the-badge)\n![GitHub last commit](https://img.shields.io/github/last-commit/FernandoCelmer/project-basic-test-sqlalchemy?style=for-the-badge)\n\n\u003cimg src=\"https://www.sqlalchemy.org/img/sqla_logo.png\"\u003e\n\n## ✔️ About\nThis repository contains a basic Python project for performing database operations using the SQLAlchemy ORM.\n\n## 🚀 Stack\n\n- [Python](https://www.python.org/) \n- [SQLAlchemy](https://www.sqlalchemy.org/)\n\n# Instructions\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstalling Local Project with [PIP]\u003c/summary\u003e\n  \u003cbr\u003e\n  \n - Create a new Python virtual environment\n```bash\nvirtualenv -p python3.9 venv\n```\n - Activate the virtual environment\n```bash\nsource venv/bin/activate\n```\n - Install requirements with PIP\n```bash\npip install -r requirements.txt\n```\n\u003c/details\u003e\n\n## Running\n\n| Option                              | Command                                                            |\n| :---------------------------------: | :----------------------------------------------------------------: |\n| SQLAlchemy ORM\t                    | `python setup.py run_sql_orm --value 1 --thread 10`                |\n| SQLAlchemy ORM add_all()\t          | `python setup.py run_sql_orm_add_all --value 1 --thread 10`        |\n| SQLAlchemy ORM bulk_save_objects()\t| `python setup.py run_sql_orm_bulk_insert --value 1 --thread 10`    |\n| SQLAlchemy Core\t                    | `python setup.py run_sql_core --value 1 --thread 10`               |\n\n## Test - SQLite\n\n- SQLAlchemy ORM: Total 5.3358 seconds\n- SQLAlchemy ORM add_all(): Total 4.8070 seconds\n- SQLAlchemy ORM bulk_save_objects(): Total 0.7364 seconds\n- **SQLAlchemy Core: Total 0.5063 seconds**\n\n## Test - MySQL\n\n- SQLAlchemy ORM: --\n- SQLAlchemy ORM add_all(): --\n- **SQLAlchemy ORM bulk_save_objects(): Total 5.8701 seconds**\n- SQLAlchemy Core: Total 11.2585 seconds\n\n## Test - Mysql (1000:Inserts) * (10:Threads)\n\n\u003cdetails\u003e\n  \u003csummary\u003eSQLAlchemy ORM\u003c/summary\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eSQLAlchemy ORM add_all()\u003c/summary\u003e\n\n  \n\u003c/details\u003e\n  \n\u003cdetails\u003e\n  \u003csummary\u003eSQLAlchemy ORM bulk_save_objects()\u003c/summary\u003e\n\n    running run_sql_orm_bulk_insert\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:00.853800]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.749000]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.771200]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.773400]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.776300]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.945100]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.912700]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:01.929000]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:02.022500]\n    SQLAlchemy ORM bulk_save_objects(): Total [0:00:02.732800]\n\n\u003c/details\u003e\n  \n\u003cdetails\u003e\n  \u003csummary\u003eSQLAlchemy Core\u003c/summary\u003e\n\n    running run_sql_core\n    SQLAlchemy Core: Total [0:00:00.791400]\n    SQLAlchemy Core: Total [0:00:01.689200]\n    SQLAlchemy Core: Total [0:00:01.733400]\n    SQLAlchemy Core: Total [0:00:01.730500]\n    SQLAlchemy Core: Total [0:00:01.688000]\n    SQLAlchemy Core: Total [0:00:01.728900]\n    SQLAlchemy Core: Total [0:00:01.718400]\n    SQLAlchemy Core: Total [0:00:01.691300]\n    SQLAlchemy Core: Total [0:00:01.713200]\n    SQLAlchemy Core: Total [0:00:01.835200]\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandocelmer%2Fproject-basic-test-sqlalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandocelmer%2Fproject-basic-test-sqlalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandocelmer%2Fproject-basic-test-sqlalchemy/lists"}