Comments (7)
where does that recommended time come from?
from sqlite-provider.
I have no idea what reference they have for that. Isn't it the time per frame before jank?
from sqlite-provider.
could be the time ignoring GC
¯_(ツ)_/¯
from sqlite-provider.
Using TimingLogger we determined this is the line that causes the slow down for this
String[] sqls = assets.list(migrationsPath);
(Migrations:121)
The issue only arises when you have a certain number of migration files (device dependent) 10_ migration files in our case.
Considering alternative solutions, we can't speed up assets.list
as it is a framework class.
We could move all assets
to res/xml
as these would be compiled and the name references would be available instantly, however this is a breaking api change and not being considered right now.
We could also allow the library user to pass the number of the file wanting to be used so that this lookup is not needed. However this might not be possible due to the creation time and also it defeats half the point of having the migration file (vs the normal version number declaration).
So right now this is a WILL NOT FIX.
from sqlite-provider.
[[selfie-0 uploading...]]
from sqlite-provider.
is the beef that this is working on the main thread?
from sqlite-provider.
yeah, don't think it can be backgrounded ... it's instantiating the content provider
from sqlite-provider.
Related Issues (20)
- Util.SQLFile parse() method is broken HOT 6
- SQLiteContentProviderImpl.java return value incorrect HOT 3
- Logging all executed statements HOT 2
- Multi-column constraint not handled correctly HOT 6
- Could not resolve com.novoda:sqliteprovider-core:1.0.1.
- Could not resolve com.novoda:sqliteprovider-core:1.0.1. HOT 7
- SQLiteContentProviderImpl.insertInTransaction() bug HOT 1
- Start following gitflow branching model HOT 6
- Bug in the Simple demo
- Problems with encodings reading from migrations file HOT 9
- Gradle-ify demos HOT 2
- Log is visible to ALL HOT 3
- No gradle support? HOT 2
- SQL files in unit tests should be in files
- is there a demon or sample how to update the column? HOT 3
- FileNotFoundexception on migration files HOT 7
- getDatabaseHelper(Context context) has incorrect declaration.
- Foreign keys not working HOT 3
- [HIGH PRIORITY] Technical Data Questionnaire Wiki Page 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 sqlite-provider.