3. What is it good for? Debugging Queries/Syntax Testing Administration Scripting Glue Not for building apps, probably
4. The Bad: JS Types Numbers Suck (but getting better) 32/64bit signed (int/long) – 1.5.4>NumberLong(“”) Displayed funny in early versions Everything is a 64bit fp (double) Dates are a challenge new Date(“1/1/1”) new ISODate(…) Not Date(“1/1/1”) -> string
5. The Bad: JS is Slow Shell Always Safe/GLE Loops and updates Data conversions Server It pretty much applies here too Be careful with numbers as well
6. Insert, Save, Update, Remove Demo now for(i = 0; i <1000; i++) { db.test.insert({x:i, ts: new Date()}) }