MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / save_book

Function save_book

benchmarks/test_basic_doc_ops.py:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 print("Doc validation: %.3fus" % (timeit(b.validate, 1000) * 10**6))
54
55 def save_book():
56 b._mark_as_changed("name")
57 b._mark_as_changed("tags")
58 b.save()
59
60 print("Save to database: %.3fus" % (timeit(save_book, 100) * 10**6))
61

Callers

nothing calls this directly

Calls 2

_mark_as_changedMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected