Interesting thing with mongo quering
Do you know result of db.myCollection.find().limit(0)?
It will be the same to db.myCollection.find() and return everything from collection
What about such thing db.myCollection.find().limit(-12)? Will it work at all?
Yes It will return the same to db.myCollection.find().limit(+12)
Translate
Показ дописів із міткою #tip. Показати всі дописи
Показ дописів із міткою #tip. Показати всі дописи
вівторок, 13 січня 2015 р.
пʼятниця, 9 січня 2015 р.
#tip #java
If you are not 100% sure prefer String.valueOf(value) over new String(value).
Inside valueOf method we have check on null so that you'll never get NPE
Inside valueOf method we have check on null so that you'll never get NPE
Підписатися на:
Дописи (Atom)