-
Notifications
You must be signed in to change notification settings - Fork 1
[refactor](ingester-example): reorganize project structure and improve database connection configuration. #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
zqr10159
commented
May 24, 2025
- Rename packages to better reflect their purpose (e.g., quickstart, benchmark).
- Move database connection logic to a central DBConnector class.
- Use properties file for database connection details.
- fix deamon to daemon.
…database connection - Rename packages to better reflect their purpose (e.g., quickstart, benchmark) - Move database connection logic to a central DBConnector class - Use properties file for database connection details - Update logging and error handling - Improve code readability and maintainability
@fengjiachun Hi, please help review it, thanks! |
@zqr10159 Hi, thank you for your contribution. There are two minor issues to address:
|
Ok. I will fix them soon. |
- Update README with correct file paths for examples- Reorganize import statements in Java files for better readability
You can also modify the code format according to the prompts here: https://github.com/GreptimeTeam/greptimedb-ingester-java/actions/runs/15228347898/job/42871103593?pr=86 |
ingester-example/src/main/java/io/greptime/bench/benchmark/BatchingWriteBenchmark.java
Show resolved
Hide resolved
Thank you. I have fixed them. Please help me see if there are any other problems. |
ingester-example/src/main/java/io/greptime/bench/benchmark/BulkWriteBenchmark.java
Show resolved
Hide resolved
ingester-example/src/main/java/io/greptime/bench/benchmark/StreamingWriteBenchmark.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM, thanks a lot. @zqr10159
…asses - Remove db_endpoint and db_name from BulkWriteBenchmark and StreamingWriteBenchmark - Update class comments to reflect the removal of these environment variables
- Remove comments about db_endpoint and db_name as they are not relevant to the batching write benchmark- Keep existing information about batch_size_per_request, zstd_compression, and max_points_per_second
v0.14.6 has been released, which includes this fix. cc @zqr10159 |