Comments (1)
I think instead of splitting compaction into two stages: compacting overlapping and sequential segments. We can compact all segments at the same time because mergeRecordsToLog handles any source segments correctly, they don't need to be either overlapping or non-overlapping (or even sorted). Also mergeRecordsToLog splits output segments, so that they wouldn't be larger than provided maximum size.
So I think we can just take all segment of size less than targetSize and let mergeRecordsToLog function handles all of them. To avoid frequent writing of the same data I also require in the patch that total size of segments to compact more that targetSize or number of files is not very small (>64, but maybe should be configurable)
from oklog.
Related Issues (20)
- Panic: short record HOT 2
- Move to length-delimited records HOT 8
- Add first-class concept of topics HOT 11
- Extend record identifier HOT 9
- Long-term storage
- Docker repo doesn't contain recent releases HOT 4
- network HOT 3
- forwarder mangles bare percent signs HOT 2
- Integration with Fluentd HOT 1
- bufio.Scanner: token too long HOT 1
- Log records can be stored in wrong order HOT 8
- Implement optional text indexing for faster queries
- Implement token based access control
- Proposal: Create ULID from timestamp contained in record HOT 1
- Local node unable to connect to self after netowrk change
- Unable to "make install" using the tar.gz package and no oklog command found HOT 2
- What's the best way to test the cluster in large installation is working
- How oklog stores data?
- Web UI Improvements
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 oklog.