react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Replace argument FragmentActivity to Activity in SQLitePlugin

Open barbarosh opened this issue 11 years ago • 10 comments

I think Activity must be by default as type of this argument.

barbarosh avatar Nov 16 '15 16:11 barbarosh

i will take a look at this.

andpor avatar Nov 16 '15 18:11 andpor

Yes agree. I should have been an Activity from start. I am making this change now.

andpor avatar Nov 16 '15 18:11 andpor

Done. Thanks for your suggestion Alex.

andpor avatar Nov 16 '15 18:11 andpor

@andpor Thanks you for good module ! This module helped me on ios with improve sqlite performance! From 2m to 2s for 20k rows, timing on react-native code ! I expected will the same result on Android, but that did not happen, may be you known methods to fetch 10k rows with time 0.5s ? Now is time 6s. P.S.: Sorry for my English, is not my native language.

barbarosh avatar Nov 16 '15 19:11 barbarosh

Well, I will have a supposedly faster adapter for Android ready within the next few days - the current one uses default Android classes which could be on the slow side. Hopefully it will give you the spread improvement you are looking for I hope. I do not know the exact timings unfortunately. Very excited about this myself too - and very happy you managed to improve so much on iOS already. Спасибо тебе друг.

andpor avatar Nov 16 '15 19:11 andpor

... and I can't take full credit - core work done by Chris Brody

andpor avatar Nov 16 '15 19:11 andpor

Sure he deserves thanks for the excellent library. :+1:

barbarosh avatar Nov 16 '15 20:11 barbarosh

Thanks guys, I think was a team effort. If you look at https://github.com/litehelpers/Cordova-sqlite-storage/blob/master-public/AUTHORS.md, I extracted a couple major parts from DroidGap and others wrote the iOS and WP8 versions. Some others made major contributions in the first couple years. The original SQLite Plugin was made by @davibe and @joenoon for iOS and I forked it to add more and more features.

I will take credit for maintaining it since it has taken a lot of work on my part for the past few years. I am thinking about writing a HISTORY.md file for those who may be interested in the future.

brody2consult avatar Nov 16 '15 20:11 brody2consult

@brodybits Thank you for information and your work ! And HISTORY.md good idea.

barbarosh avatar Nov 16 '15 20:11 barbarosh

@barbarosh - check out the project under android-native and tell me what kind of timings you experience vs the original Android implementation. Hope it will be much better - fingers crossed.

andpor avatar Nov 16 '15 23:11 andpor