Comments (9)
An existed cron library is enough.
from rosedb.
嗯嗯,目前是执行 Merge 了才会清理。
也可以自定义自动清理的逻辑,你这边啥使用场景呢
from rosedb.
嗯嗯,目前是执行 Merge 了才会清理。 也可以自定义自动清理的逻辑,你这边啥使用场景呢
场景就是拿来做本地缓存,例如一个用户数据缓存几分钟。过期后再次回源写入。
所以我使用rosedb时设置了ttl,没想到它不会自动清理文件,现在文件越来越大
from rosedb.
可以写一个定时任务,系统空闲时执行 Merge 操作
from rosedb.
可以写一个定时任务,系统空闲时执行 Merge 操作
目前看rosedb文档也只能这样了
from rosedb.
Hi @roseduan , I want to make an enhancement with a background goroutine and configured interval to do merge jobs. It should start after all initializations.
Do we have a way to get metric to guess a more suitable time window to merge or just a fixed interval or cron-expression configured by customer is enough?
from rosedb.
Hi @roseduan , I want to make an enhancement with a background goroutine and configured interval to do merge jobs. It should start after all initializations. Do we have a way to get metric to guess a more suitable time window to merge or just a fixed interval or cron-expression configured by customer is enough?
Thanks.
I think we can add a simple solution first. A cron expression seems a good choice, which already contains the fixed time interval.
We can add some more complicated routines(metrics) if some users ask for it.
from rosedb.
Hi @roseduan , I want to make an enhancement with a background goroutine and configured interval to do merge jobs. It should start after all initializations. Do we have a way to get metric to guess a more suitable time window to merge or just a fixed interval or cron-expression configured by customer is enough?
Thanks.
I think we can add a simple solution first. A cron expression seems a good choice, which already contains the fixed time interval.
We can add some more complicated routines(metrics) if some users ask for it.
Thanks very much for your suggestion. Got it, I will make a cron-expression implementation.
Before coding I want to confirm our rules for third-party libraries.
Can I import an existed cron library or I should implement it from scratch?
from rosedb.
An existed cron library is enough.
Got it! Thanks very much for your patience and warm suggestions😁
from rosedb.
Related Issues (20)
- Add more BTree functions HOT 1
- Add TTL support HOT 1
- Ascend's execution efficiency is suboptimal HOT 4
- Suggestion: Add a separate method for setting expiration time. HOT 2
- Iterating over all KVs by their insertion order HOT 13
- NEW: Periodically remove expired keys from memory HOT 6
- V2.3.2 Release Plan
- add example code(in examples folder) for TTL (good first issue)
- add example code(in examples folder) for iterating (good first issue)
- Question: Hint file usage HOT 3
- panic: send on closed channel HOT 1
- Suggestion: add a Command for Removing Key Expire HOT 9
- Expired Keys Found in AscendKeys/DescendKeys HOT 4
- Optimize memory usage
- Proposal: keep key and value into memory HOT 3
- Proposal: allow key and value to store per bucket HOT 1
- Proposal: raft protocol support HOT 2
- Possible project use HOT 1
- about replicator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosedb.