today_ai_weather/db
songtianlun 06a861c639 refactor: clean up city model and adjust worker timing
- Implement caching methods for last weather fetch and image generation
- Adjust sleep duration in BatchGenerateWeatherArtsWorker from 10 seconds to 3 seconds
- Remove unused fields `last_weather_fetch` and `last_image_generation` from the cities table
- Add index on the weather_arts table for optimized querying

This refactor improves data retrieval performance for weather data
associated with cities. Caching reduces database load while the
worker modification allows for faster iterations in generating
weather arts without significantly impacting performance.
2025-01-23 23:59:48 +08:00
..
migrate refactor: clean up city model and adjust worker timing 2025-01-23 23:59:48 +08:00
seeds fix: update weather fetch timing to days 2025-01-23 01:50:04 +08:00
cable_schema.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
cache_schema.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
queue_schema.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
schema.rb refactor: clean up city model and adjust worker timing 2025-01-23 23:59:48 +08:00
seeds.rb chore: update admin user creation for seeds 2025-01-23 00:40:42 +08:00