Changes between Version 1 and Version 2 of DmlScript
- Timestamp:
- 05/04/26 11:47:28 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DmlScript
v1 v2 1 1 This DML script simulates the real behavior of the application over time, rather than inserting all data at once. The key idea is that several parts of the system are interdependent, especially offer pricing, badges, and reviews. 2 2 3 The price of each offer is not purely random—it depends on the worker’s badge in the corresponding category. The badge itself is calculated based on the worker’s average ratings derived from reviews accumulated over time. In other words, there is a clear dependency chain: 3 The price of each offer is not purely random—it depends on the worker’s badge in the corresponding category. 4 As workers progress through badge levels over time based on their reviews, offer pricing must remain aligned with their current badge status. For this reason, data generation was performed in monthly batches, enabling periodic badge recalculation and corresponding updates to price ranges. The badge itself is calculated based on the worker’s average ratings derived from reviews accumulated over time. In other words, there is a clear dependency chain: 4 5 reviews → badges → offer price 5 6
