Mongo db and wee data

22
MongoDB and Wee Data hacking a workflow

Transcript of Mongo db and wee data

Page 1: Mongo db and wee data

MongoDB andWee Data

hacking a workflow

Page 2: Mongo db and wee data

what it’s all about

• MongoDB lets you persist and investigate your application data while getting out of your way

• p.s. BDD

Page 3: Mongo db and wee data

me

• http://bringingfire.com/

• @4BringingFire

• expertise at the intersection of technology, product formulation, and business strategy

Page 4: Mongo db and wee data

stuff I’m into

• products > tech

• UX testing

• iterative, analytics-driven dev

• agility in production

Page 5: Mongo db and wee data

http://www.shopwiki.com

Page 6: Mongo db and wee data

these guys © wired.com

Page 7: Mongo db and wee data

http://penrosejudaica.com

Page 8: Mongo db and wee data

there are barely any actual Big Data projects

Page 9: Mongo db and wee data

what is wee data?

• query performance is not an issue

• in fact it might fit in RAM

• in fact it might fit in 2MB

Page 10: Mongo db and wee data

where mongo fits

• scales down nicely

• access programmatically without SQL

• persists for free

• query later, too

Page 11: Mongo db and wee data

ORMpuh-lease.

Page 12: Mongo db and wee data

http://penrosejudaica.com

Page 13: Mongo db and wee data

Behavior Driven Development

• “Outside-in” approach

• Everything is behavior

• Acceptance-test-driven planning

• Ubiquitous language

Page 14: Mongo db and wee data

Cucumber

Page 15: Mongo db and wee data

Cucumber

Page 16: Mongo db and wee data

Cucumber

Page 17: Mongo db and wee data

Cucumber

Page 18: Mongo db and wee data

rspec

• specification

• object doubles (mocks, fakes, stubs, spies)

• method stubbing

• expectations

Page 19: Mongo db and wee data
Page 20: Mongo db and wee data

Behavior Driven Development

• http://cukes.info/

• http://rspec.info/

Page 21: Mongo db and wee data

Name Materials Price Description

fancy menorah gold, silver 600

plain menorah pewter 150

the Penrose ETL pipeline

ProductSpreadsheets

.csv.csv.csv

CSV files ProductDescriptions

Blah blah blahexquisite

craftsmanship

db.products.aggregate( { $match : { product_type : “menorah” } }, { $group : { _id: “$material”, count:

{ $sum : 1 } } )

Buy AdWords?

Page 22: Mongo db and wee data

Q & A