Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
db:mongodb [2024/08/06 18:23]
tomas
db:mongodb [2024/11/01 11:19] (current)
tomas [prikazy v mongo klientovi]
Line 33: Line 33:
 ''%%db.createCollection("COLLECTION")%%'' \\ ''%%db.createCollection("COLLECTION")%%'' \\
 ''db.COLLECTION.count()'' ... pocet radku v tabulce COLLECTION\\ ''db.COLLECTION.count()'' ... pocet radku v tabulce COLLECTION\\
 +''db.COLLECTION.deleteOne( { _id: "563237a41a4d68582c2509da" } )'' ... smazání řádku\\
 ''%%db.COLLECTION.insert({"name":"tutorials point"})%%'' ... vlozi zaznam do collection COLLECTION\\ ''%%db.COLLECTION.insert({"name":"tutorials point"})%%'' ... vlozi zaznam do collection COLLECTION\\
 ''db.COLLECTION.explain("executionStats").find(( { $and: [ { "userRrole":"owner", "userId":"10022"} ] } ))'' ... ukáže jak se zpracoval dotaz, kolik času zabral atd.\\ ''db.COLLECTION.explain("executionStats").find(( { $and: [ { "userRrole":"owner", "userId":"10022"} ] } ))'' ... ukáže jak se zpracoval dotaz, kolik času zabral atd.\\