{"id":27643279,"url":"https://github.com/matrixorigin/mo-tpcc","last_synced_at":"2025-04-24T00:12:04.997Z","repository":{"id":102992709,"uuid":"570382674","full_name":"matrixorigin/mo-tpcc","owner":"matrixorigin","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-27T04:03:31.000Z","size":5925,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-27T05:22:45.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matrixorigin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-25T03:40:12.000Z","updated_at":"2024-08-27T05:22:47.103Z","dependencies_parsed_at":null,"dependency_job_id":"e0df301d-be26-4d63-847d-237f8cbf677d","html_url":"https://github.com/matrixorigin/mo-tpcc","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/matrixorigin%2Fmo-tpcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmo-tpcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmo-tpcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmo-tpcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrixorigin","download_url":"https://codeload.github.com/matrixorigin/mo-tpcc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535105,"owners_count":21446508,"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":[],"created_at":"2025-04-24T00:12:04.401Z","updated_at":"2025-04-24T00:12:04.988Z","avatar_url":"https://github.com/matrixorigin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mo-tpcc\nThis project is customed from benchmarksql-5.0, to run TPCC Benchmark for MatrixOne.\nThe project mainly customized the schema, SQL statements, and some transaction conflict processing codes, and did not change the TPCC core process code\n\n\n# How to use?\n\nThis tool is designed to test MatrixOne benchmark for TPCC or any other database functionalities with SQL.\n\n### 1: Run your MatrixOne instance or other DB instance.\n\nCheckout [Install MatrixOne](https://docs.matrixorigin.io/0.4.0/MatrixOne/Get-Started/install-standalone-matrixone/) to launch a MatrixOne instance.\n\nOr you can launch whatever database software as you want.\n\n### 2. Fork and clone this mo-tpch project.\n\n  ```\n  git clone https://github.com/matrixorigin/mo-tpcc.git\n  ```\n\n### 3. Run the test.\n\nYou can use this tool to generate the TPC-C data,create TPC-C tables,load data to MatrixOrigin(or other database),and run TPC-C benchmark.\n\nAnd these Opertions must be executed step by step as the following descriptions, or there will be errors unexpected during the test.\n\n**Fisrt,you should make some configs in `props.mo` :**\n\n  ```\n  db=mo\n  driver=com.mysql.cj.jdbc.Driver\n  conn=jdbc:mysql://127.0.0.1:6001/tpcc?characterSetResults=utf8\u0026continueBatchOnError=false\u0026useServerPrepStmts=true\u0026alwaysSendSetIsolation=false\u0026useLocalSessionState=true\u0026zeroDateTimeBehavior=CONVERT_TO_NULL\u0026failoverReadOnly=false\u0026serverTimezone=Asia/Shanghai\u0026enabledTLSProtocols=TLSv1.2\u0026useSSL=false\n  user=dump\n  password=111\n\n  //the number of warehouse\n  warehouses=1\n  loadWorkers=4\n  \n  //the num of terminals that will simultaneously run\n  //must be less than warehouses*10\n  terminals=1\n  //To run specified transactions per terminal- runMins must equal zero\n  runTxnsPerTerminal=0\n  //To run for specified minutes- runTxnsPerTerminal must equal zero\n  runMins=1\n  //Number of total transactions per minute\n  limitTxnsPerMin=0\n  ```\n\n\n**Second,you should TPC-C database and tables by the command:**\n\n`./runSQL.sh props.mo tableCreates`\n\n\n**Third,you should generate and load TPC-C data to by the command:**\n\n`./runLoader.sh props.mo warehouse 10`\n\nIf only need to generate data, use command:\n\n`./runLoader.sh props.mo warehouse 10 filelocation /yourpath/`\n\n**Then，you can run TPC-C benchmark by the commands:**\n\n`./runBenchmark.sh props.mo`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmo-tpcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixorigin%2Fmo-tpcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmo-tpcc/lists"}