Azure,DocumentDB,Count提供不正确的结果

时间:2017-03-23 08:52:34

标签: azure azure-cosmosdb

在documentDB集合中,在门户网站中运行下一个查询:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:weightSum="2">

    <com.google.android.gms.maps.MapView android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" />

</LinearLayout>

返回了一些结果。

现在运行此查询:

    03-23 10:15:27.979 19412-19412/com.geoida.progeo I/art: Late-enabling -Xcheck:jni
03-23 10:15:28.030 19412-19425/com.geoida.progeo E/HAL: load: id=gralloc != hmi->id=gralloc
03-23 10:15:28.094 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_dependencies_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.564 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.624 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_1_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.677 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_2_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.729 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.783 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.837 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.887 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.938 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:28.997 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:29.059 19412-19412/com.geoida.progeo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.geoida.progeo-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.geoida.progeo-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
03-23 10:15:29.061 19412-19412/com.geoida.progeo W/System: ClassLoader referenced unknown path: /data/app/com.geoida.progeo-2/lib/arm64
03-23 10:15:29.067 19412-19412/com.geoida.progeo I/InstantRun: Starting Instant Run Server for com.geoida.progeo
03-23 10:16:10.557 19412-19412/com.geoida.progeo I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
03-23 10:16:10.591 19412-19412/com.geoida.progeo W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-23 10:16:10.823 19412-19412/com.geoida.progeo I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
03-23 10:16:10.951 19412-19412/com.geoida.progeo I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
03-23 10:16:10.979 19412-19412/com.geoida.progeo I/HwSecImmHelper: mSecurityInputMethodService is null
03-23 10:16:11.048 19412-20179/com.geoida.progeo E/HAL: load: id=gralloc != hmi->id=gralloc
03-23 10:16:11.049 19412-20179/com.geoida.progeo I/OpenGLRenderer: Initialized EGL, version 1.4
03-23 10:16:11.242 19412-19412/com.geoida.progeo W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-23 10:16:11.252 19412-19412/com.geoida.progeo I/HwSecImmHelper: mSecurityInputMethodService is null
03-23 10:16:11.254 19412-19412/com.geoida.progeo I/HwSecImmHelper: mSecurityInputMethodService is null
03-23 10:16:13.793 19412-19412/com.geoida.progeo I/zzai: Making Creator dynamically
03-23 10:16:13.893 19412-19412/com.geoida.progeo W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000019/n/arm64-v8a
03-23 10:16:13.905 19412-19412/com.geoida.progeo I/System.out: [/system/bin/getprop, debug.mapview.logs]
03-23 10:16:13.905 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:13.905 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:13.905 19412-19412/com.geoida.progeo I/System.out: Calling by::className:com.google.maps.api.android.lib6.common.q  MethodName:a
03-23 10:16:14.031 19412-19412/com.geoida.progeo I/Google Maps Android API: Google Play services client version: 10298000
03-23 10:16:14.039 19412-19412/com.geoida.progeo I/Google Maps Android API: Google Play services package version: 10298448
03-23 10:16:14.040 19412-19412/com.geoida.progeo I/System.out: [/system/bin/getprop, debug.mapview.renderer]
03-23 10:16:14.040 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:14.040 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:14.041 19412-19412/com.geoida.progeo I/System.out: Calling by::className:com.google.maps.api.android.lib6.common.q  MethodName:a
03-23 10:16:14.073 19412-19412/com.geoida.progeo I/System.out: [/system/bin/getprop, debug.mapview.streetview]
03-23 10:16:14.073 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:14.073 19412-19412/com.geoida.progeo I/System.out: null
03-23 10:16:14.074 19412-19412/com.geoida.progeo I/System.out: Calling by::className:com.google.maps.api.android.lib6.common.q  MethodName:a
03-23 10:16:14.140 19412-19412/com.geoida.progeo I/Process: Sending signal. PID: 19412 SIG: 9

返回此结果:

  

[     {       “$ 1”:0     }   ]

怎么可能?

可能有帮助的一点是,当在门户网站中运行查询时会发生一些延续

RemovalListener

1 个答案:

答案 0 :(得分:1)

DocumentDB与传统数据库的区别在于两个方面 - 1)它对所有请求的延迟上限为5秒,因为它是基于HTTPS和REST的基于云的服务,2)它是&#39; sa具有预配置吞吐量的数据库,因此您可以获得可预测的性能(这很好),但必须在保留的资源预算内执行查询。

这意味着某些查询可以进行渐进式进度,您必须通过使用延续令牌重新提交查询来恢复执行,直到所有结果都可用。对于聚合查询,DocumentDB的工作方式类似于&#34; map-reduce&#34;因为部分聚合结果返回给客户端,客户端负责产生最终结果(例如汇总聚合)。通常情况下,您不会注意到这种行为,因为查询在一次往返中完成,但您会注意到查询需要扫描执行时(例如,因为它涉及对NOT IS_DEFINED子句的否定)。

如果您运行查询完成,您将看到返回正确的结果。

相关问题