我需要从具有用户定义的表类型的存储过程对表进行批量更新。更新导致表锁定,我想减轻它。我想在更新1000中批量处理它们。代码如下所示
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.****"
minSdkVersion 14
targetSdkVersion 23
versionCode 105
versionName "1.0.5"
renderscriptTargetApi 23
multiDexEnabled true
renderscriptSupportModeEnabled true
}
dexOptions {
preDexLibraries = false
incremental true
javaMaxHeapSize "4g"
}
buildTypes {
release {
debuggable false
minifyEnabled true
jniDebuggable false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
jniDebuggable false
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':library')
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.braintreepayments.api:braintree:1.+'
compile 'com.nononsenseapps:filepicker:2.2.3'
compile 'com.android.support:design:23.1.1'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'io.card:android-sdk:5.1.2'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.kbeanie:image-chooser-library:1.4.4@aar'
compile 'com.mixpanel.android:mixpanel-android:4.6.4'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.appyvet:materialrangebar:1.3'
compile 'com.android.support:multidex:1.0.1'
}
任何帮助都会非常感激
答案 0 :(得分:0)
I haven't tested this as I don't have any sample data but this should do it.:
setValues([arrayOfData])