>>> from kenobi import KenobiDB  

>>> db = KenobiDB('example.db')  

>>> db.insert({'name': 'Yoda', 'lightsaber': 'green'})  
True  

>>> db.search('lightsaber', 'green')  
[{'name': 'Yoda', 'lightsaber': 'green'}]  
  • @rglullis@communick.news
    link
    fedilink
    3
    edit-2
    4 months ago

    All you need to understand about MongoDB is that it is webscale, because it doesn’t do joins and it has the most kick-ass benchmarks. And sharding.

    • biocoder.ronin
      link
      fedilink
      English
      22 months ago

      sharing is the secret to the web scale sauce. you just turn it on and it scales right up