Salsa Database Structure - 2012 Salsa Community Conference

741 views
598 views

Published on

Salsa's Director of Development, Sam Freund, led participants through a tour of the salsa database structure, supplemented by talks from developers Russell Mystiek and Shawn Rahmani.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
741
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Salsa Database Structure - 2012 Salsa Community Conference

  1. 1. Salsa Database StructureSam Freund, Russell Mystiek, Shawn Rahmani
  2. 2. What I will cover• DB design 101• Salsa Database Structure for common packages• Salsa legislative warehouse data
  3. 3. What I won’t cover• Salsa database content• Database structure for uncommon packages• Custom fields
  4. 4. Intro to Database Design
  5. 5.  In the voter table: − voter_KEY is the “primary key” − house_KEY is a “foreign key” There can be only one primary key There can be any number of foreign keys
  6. 6.  What would be a good primary key for contact? What would contacts foreign keys be?
  7. 7. Salsa Database Structure
  8. 8. Why? Youre writing a function to change the text of your email based on a supporters donation history You want to display things differently based on which campaigns a supporter has responded to ???
  9. 9. Why? You want to be able to programmatically send an email blast (this is scary! Be careful or Ill sic Brett on you). You want to base some content on which emails a supporter has opened and clicked. ???
  10. 10. Why? You want to use Salsas database and API to make your own integrated events system with your existing CMS. You want to capture and store attendees of Facebook events in Salsa. ???
  11. 11. Why? Youre coding your own action style as part of your d.package. You had a fit of temporary insanity. You want to be able to save action takers from external sources. ???
  12. 12. But Ill forget this by tomorrow! Thats okay. We got you.
  13. 13.  http://www.salsalabs.com/devs/docs/database /api/describe.sjs?object=supporter
  14. 14. The Warehouse
  15. 15. MongoDB with Russell
  16. 16. Take a nap, youve earned it.

×