{"id":16779756,"url":"https://github.com/lc044/test","last_synced_at":"2025-07-07T06:10:32.118Z","repository":{"id":257824130,"uuid":"871098156","full_name":"LC044/test","owner":"LC044","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-12T10:35:51.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:29:09.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/LC044.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":"2024-10-11T09:10:36.000Z","updated_at":"2024-11-12T10:35:55.000Z","dependencies_parsed_at":"2024-11-12T11:24:02.006Z","dependency_job_id":"944d75f7-1863-475d-9833-42ad8ff14858","html_url":"https://github.com/LC044/test","commit_stats":null,"previous_names":["lc044/test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2Ftest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2Ftest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2Ftest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2Ftest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LC044","download_url":"https://codeload.github.com/LC044/test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243924055,"owners_count":20369647,"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":"2024-10-13T07:32:09.279Z","updated_at":"2025-03-16T19:45:20.631Z","avatar_url":"https://github.com/LC044.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 在线创建索引测试\n\n## 安装依赖\n\n```shell\npip install -r requirements.txt\n```\n\n## 修改openGauss配置\n\n改成本地openGauss对应配置\n\n./database/opengauss.py\n\n```python\nconnection_params = {\n    'host': '127.0.0.1',\n    'port': '33000',\n    'dbname': 'postgres',\n    'user': 'shuaikangzhou',\n    'password': 'zhou@123'\n}\n```\n\n有问题的话可以尝试把用户名和密码字段删了，获取把端口和主机删了，都试试\n\n## 运行main.py\n\n```shell\npython main.py\n```\n\n## 其他配置\n\nOpenGauss.roll_back_rate: 回滚率，每个DML操作都有一定概率回滚，可以通过该参数调整回滚率\nOpenGauss.init_database: 初始化表，修改这部分可以改变表的数据\n\n```python\nog = OpenGauss(self.dbname)\n\n# op_num: 操作的个数\n# op_rate: insert,delete,update的比例\nog.random_operation(op_num=100,op_rate=[3,3,4])\n\nog.close()\n```\n\n可以通过阶段二和阶段三的操作个数和操作比例控制不同的情况，例如，阶段二全设置为insert，阶段三全设置成delete，就很容易出现阶段三删除阶段二插入的数据这种情况。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc044%2Ftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flc044%2Ftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc044%2Ftest/lists"}