Comments (4)
FrostDB uses a lot of OpenFile for reading row in memory. I think segmentio/parquet-go#255 will help.
I went for the pool per schema/dynamic columns as I think over allocating is fine as long as you can reuse.
So far this what I have.
❯ benchstat before.txt after.txt
name old time/op new time/op delta
_Table_Insert_10Rows_10Iters_10Writers-16 460ms ±14% 586ms ±12% +27.44% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
_Table_Insert_10Rows_10Iters_10Writers-16 794MB ±30% 293MB ±59% -63.15% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
_Table_Insert_10Rows_10Iters_10Writers-16 1.49M ±52% 0.76M ±24% -49.11% (p=0.016 n=5+5)
I'm still playing around though.
from frostdb.
That's what I actually do.
from frostdb.
Nice! We should also be able to re-use writers and use a sync.Pool
on a per schema basis for those as well. I think that will optimize away another fair bit.
from frostdb.
Closing as I believe this has been addressed with many changes, notably the new index.
from frostdb.
Related Issues (20)
- Use compute.FilterRecord instead of bitmask and manually filtering HOT 10
- records.Build can be moved out of internal packages, so that we can use it to directly build arrow.record? HOT 6
- unsupport aggregation specific dynamic column HOT 1
- Move prehash function to happen before write to WAL
- unsupport avg on a single dynamic column HOT 1
- OrderedAggregate leaks memory HOT 1
- What is the state of schema v1alpha2 ? HOT 18
- memory leak for PredicateFilter HOT 1
- panic: Duplicate registration HOT 1
- `Test_Table_ReadIsolation` flaky
- MergeRecords can support array.Float64 sort? HOT 4
- Proper transaction support HOT 4
- Snapshot refactor
- index: block rotation deadlock due to not releasing parts
- snapshot: two snapshots at the same txn causes data loss
- Add renovate to keep our dependencies up-to-date HOT 1
- There is an issue with the combination of readOnlyTable and ValidateTableScan HOT 2
- arrowutils.mergeRecords function has an assertion error HOT 4
- The problem of combining aggregation function with custom runtime.GOMAXPROCS(1) HOT 1
- Access is denied HOT 4
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 frostdb.