所以在使用了命名空间的文档中,您几乎总是需要进行两次字符串比较,如清单3所示。
So in namespaced documents, you almost always need to perform two string comparisons, as shown in Listing 3.
原来的查询比较一个字符串和一个数字,但是在修改后的查询中执行了显式的类型转换。
Here the original query is comparing a string to a number but in the modified query, explicit type-casting has been done.
换句话说,在不区分大小写的数据库中,字符串比较的开销可能会略微增加。
In other words, string comparisons may be slightly more expensive in a case-insensitive database.
应用推荐