dynalite icon indicating copy to clipboard operation
dynalite copied to clipboard

Restore data very slowly please help

Open jinghuaz opened this issue 7 years ago • 6 comments

I now encounter a little trouble, I have from the awsdump table of data, now restored to the local dynalite very slow, I use the java program to write inside, is there any way to help me? Optimized at the speed of write recovery?Capacity of about 3T Tks a lot.

jinghuaz avatar Apr 05 '17 02:04 jinghuaz

hi mhart, can you help me?~ thank you very much.

jinghuaz avatar Apr 06 '17 05:04 jinghuaz

@jinghuaz are you saying you're trying to load 3TB of data into dynalite?

mhart avatar Apr 06 '17 13:04 mhart

yup,sure.because we want dump from AWS ,then restore to dynalite. For local index,so,i want to talk about you and hope you can help me do this.now dump is very fast,but restore very slow,3 or 4 k/s.another you can tell me your weixin or facebook?

jinghuaz avatar Apr 06 '17 15:04 jinghuaz

@mhart,I want to know how can quickly restore or write to dynalite. LevelDB?

jinghuaz avatar Apr 06 '17 15:04 jinghuaz

@jinghuaz right, dynalite uses levelup, which can use LevelDB if you specify --path when you start it (by default it's just in-memory)

dynalite uses sublevel to break the LevelDB into sub-tables for each of the DynamoDB tables and indexes. You can see how that structure works here:

https://github.com/mhart/dynalite/blob/master/db/index.js#L59-L81

mhart avatar Apr 06 '17 15:04 mhart

@mhart Do you have a wechat account?

jinghuaz avatar Apr 19 '17 02:04 jinghuaz