SlideShare a Scribd company logo
1 of 33
Download to read offline
Code and Slides:
                         http://thillerson.googlecode.com

                     iPhone Persistence           Tony Hillerson
                     For Mere Mortals             Software Architect




Tuesday, March 3, 2009
Persistence

                                  Code and Slides:
                         http://thillerson.googlecode.com




Tuesday, March 3, 2009
Persistence

                                  Code and Slides:
                         http://thillerson.googlecode.com


                           ... or it means saving stuff.




Tuesday, March 3, 2009
Persistence: Disclaimer

                                  Code and Slides:
                         http://thillerson.googlecode.com


                           BTW: I’m a n00b




Tuesday, March 3, 2009
Code and Slides:
                         http://thillerson.googlecode.com

      Persistence: Savin’ stuff on ur fone
      Your options




Tuesday, March 3, 2009
Persistence: Options

                                  Code and Slides:
                         http://thillerson.googlecode.com
                           Settings
                           SQLite
                           Filesystem
                           The Internets




Tuesday, March 3, 2009
Persistence: Options

                                  Code and Slides:
                         http://thillerson.googlecode.com
                           Settings
                           SQLite
                           Filesystem
                           The Internets




Tuesday, March 3, 2009
Persistence: Our Sweet App

                                  Code and Slides:
                         http://thillerson.googlecode.com




Tuesday, March 3, 2009
Persistence: Sweet Codes
  http://github.com/thillerson/grocery_getter/
                  Code and Slides:
         http://thillerson.googlecode.com
                         Download




Tuesday, March 3, 2009
Code and Slides:
                         http://thillerson.googlecode.com

      Persistence: Settings
      Yours or Apple’s?




Tuesday, March 3, 2009
Persistence: Settings

                                  Code and Slides:
                         http://thillerson.googlecode.com


                           Apple’s => Settings.bundle
                           Yours => Roll your own
                           Both end up in
                           NSUserDefaults


Tuesday, March 3, 2009
Persistence: Settings

                                  Code and Slides:
                         http://thillerson.googlecode.com
                         Can be one of:
                         NSData, NSString,
                         NSNumber, NSDate,
                         NSArray, or NSDictionary




Tuesday, March 3, 2009
Persistence: Settings

                             Code and Slides:
                    http://thillerson.googlecode.com
                  NSUserDefaults *settings =
                    [NSUserDefaults standardUserDefaults];
                  [settings setBool:YES
                    forKey:@quot;shouldSortAfterCompletequot;];
                         [NSUserDefaults standardUserDefaults];


                  [NSUserDefaults resetStandardUserDefaults];
                  BOOL on =
                    [settings
                    boolForKey:@quot;shouldSortAfterCompletequot;];




Tuesday, March 3, 2009
Code and Slides:
                         http://thillerson.googlecode.com

      Persistence: SQLite
      It’s small, but it’s feisty!




Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com




            YO DAWG I HERD YOU
            LIEK DATA...
Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com

                         SQLite - Embedded Relational
                         Database written in C




Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com
                         Embedded Relational Database


                         written in C

Tuesday, March 3, 2009
SQLite:
                                  Code and Slides:
                                                      Hic Draconae
                         http://thillerson.googlecode.com
                                                          Sunt




                         CocoaTouch:
                         Terra Firma


Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com
                         3 Takes on our Sweet App:
                         • SQLite C API
                         • fmdb + fmdb-migration-
                           manager
                         • Aptiva’s ActiveRecord


Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com
                         SQL C API:
                         http://www.sqlite.org/c3ref/
                         funclist.html




Tuesday, March 3, 2009
Persistence: SQLite

                    Code and Slides:
       • fmdb - Thin Wrapper around SQLite
           http://thillerson.googlecode.com
       • fmdb-migration-manager - Rails-style
            migrations using fmdb

       • http://code.google.com/p/ ycode/
       • http://github.com/mocra/fmdb-
            migration-manager/


Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                          • Aptiva’s ActiveRecord
                         http://thillerson.googlecode.com
           In software engineering, the active record pattern is a design
           pattern frequently found in software that stores its data in
           relational databases. It was named by Martin Fowler in his book
           Patterns of Enterprise Application Architecture.
           - http://en.wikipedia.org/wiki/Active_record_pattern

                         http://github.com/aptiva/
                         activerecord/

Tuesday, March 3, 2009
Persistence: SQLite

                                  Code and Slides:
                         http://thillerson.googlecode.com


                           Quick! To the CODES!




Tuesday, March 3, 2009
Code and Slides:
                         http://thillerson.googlecode.com

      Persistence: A Few Points
      Take two, they’re small!




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com

                           Consider how your
                           settings will be used




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com

                           A database is an
                           implementation detail




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com

                           Encapsulation is your
                           friend




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com

                           Don’t forget to move your
                           database




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com
                           SQLite write speed is
                           constrained by
                           transactions




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com


                           SQLite uses duck-typing




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com
                           FMDB:
                           executeQuery !=
                            executeUpdate




Tuesday, March 3, 2009
Persistence: Tips

                                  Code and Slides:
                         http://thillerson.googlecode.com


                                      RTFS




Tuesday, March 3, 2009
Persistence: Thank you!
                         Tony Hillerson
                                   Code and Slides:
                         Software Architect


                          http://thillerson.googlecode.com
                     slideshare.com/thillerson
                     github.com/thillerson
                     twitter.com/thillerson
                     brightkite.com/thillerson

                     EffectiveUI.com


Tuesday, March 3, 2009

More Related Content

Viewers also liked

Identità emergenti nei pubblici connessi italiani
Identità emergenti nei pubblici connessi italianiIdentità emergenti nei pubblici connessi italiani
Identità emergenti nei pubblici connessi italiani
Agnese Vellar
 
Employee Engagement White Paper by 360Solutions
Employee Engagement White Paper by 360SolutionsEmployee Engagement White Paper by 360Solutions
Employee Engagement White Paper by 360Solutions
Elizabeth Lupfer
 
Let's Talk About Social Networking
Let's Talk About Social NetworkingLet's Talk About Social Networking
Let's Talk About Social Networking
Steve Lowisz
 
The Information Advantage - Information Access in Tomorrow's Enterprise
The Information Advantage - Information Access in Tomorrow's EnterpriseThe Information Advantage - Information Access in Tomorrow's Enterprise
The Information Advantage - Information Access in Tomorrow's Enterprise
Elizabeth Lupfer
 

Viewers also liked (20)

Identità emergenti nei pubblici connessi italiani
Identità emergenti nei pubblici connessi italianiIdentità emergenti nei pubblici connessi italiani
Identità emergenti nei pubblici connessi italiani
 
SOCIAL MEDIA: I pubblici connessi: self branding, UDC, UGC
SOCIAL MEDIA: I pubblici connessi: self branding, UDC, UGCSOCIAL MEDIA: I pubblici connessi: self branding, UDC, UGC
SOCIAL MEDIA: I pubblici connessi: self branding, UDC, UGC
 
Educare alla cittadinanza digitale: scuola e social media
Educare alla cittadinanza digitale: scuola e social mediaEducare alla cittadinanza digitale: scuola e social media
Educare alla cittadinanza digitale: scuola e social media
 
Progetto Comunicazione visiva e design delle interfacce
Progetto Comunicazione visiva e design delle interfacce Progetto Comunicazione visiva e design delle interfacce
Progetto Comunicazione visiva e design delle interfacce
 
Social Media - Introduzione al Corso [a.a. 2014-2015] - UniTo
Social Media - Introduzione al Corso [a.a. 2014-2015] - UniToSocial Media - Introduzione al Corso [a.a. 2014-2015] - UniTo
Social Media - Introduzione al Corso [a.a. 2014-2015] - UniTo
 
Ways to stay connected: Harnessing, managing, and preventing context collapse...
Ways to stay connected: Harnessing, managing, and preventing context collapse...Ways to stay connected: Harnessing, managing, and preventing context collapse...
Ways to stay connected: Harnessing, managing, and preventing context collapse...
 
19. Social network sites
19. Social network sites19. Social network sites
19. Social network sites
 
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field ExperienceAWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
AWS April 2016 Webinar Series - S3 Best Practices - A Decade of Field Experience
 
Wiley
WileyWiley
Wiley
 
NLRB report of the acting general counsel concerning social media cases
NLRB report of the acting general counsel concerning social media casesNLRB report of the acting general counsel concerning social media cases
NLRB report of the acting general counsel concerning social media cases
 
3 Keys to Influence: Understanding and Leveraging Social Capital [whitepaper]...
3 Keys to Influence: Understanding and Leveraging Social Capital [whitepaper]...3 Keys to Influence: Understanding and Leveraging Social Capital [whitepaper]...
3 Keys to Influence: Understanding and Leveraging Social Capital [whitepaper]...
 
Employee Engagement White Paper by 360Solutions
Employee Engagement White Paper by 360SolutionsEmployee Engagement White Paper by 360Solutions
Employee Engagement White Paper by 360Solutions
 
Let's Talk About Social Networking
Let's Talk About Social NetworkingLet's Talk About Social Networking
Let's Talk About Social Networking
 
Working with Git
Working with GitWorking with Git
Working with Git
 
Mytunes
MytunesMytunes
Mytunes
 
The Information Advantage - Information Access in Tomorrow's Enterprise
The Information Advantage - Information Access in Tomorrow's EnterpriseThe Information Advantage - Information Access in Tomorrow's Enterprise
The Information Advantage - Information Access in Tomorrow's Enterprise
 
Campo profughi www.asefasc.org
Campo profughi www.asefasc.orgCampo profughi www.asefasc.org
Campo profughi www.asefasc.org
 
Gamification by Aravind Gogineni
Gamification by Aravind GogineniGamification by Aravind Gogineni
Gamification by Aravind Gogineni
 
Module05
Module05Module05
Module05
 
Dynamic Sound for Android
Dynamic Sound for AndroidDynamic Sound for Android
Dynamic Sound for Android
 

Similar to iPhone Persistence For Mere Mortals

2 whats-new-in-ios7-m2-xcode-slides
2 whats-new-in-ios7-m2-xcode-slides2 whats-new-in-ios7-m2-xcode-slides
2 whats-new-in-ios7-m2-xcode-slides
MasterCode.vn
 
WordPress SEO - SEO-Campixx
WordPress SEO - SEO-CampixxWordPress SEO - SEO-Campixx
WordPress SEO - SEO-Campixx
steffenhd
 
Simplified Security Code Review Process
Simplified Security Code Review ProcessSimplified Security Code Review Process
Simplified Security Code Review Process
Sherif Koussa
 

Similar to iPhone Persistence For Mere Mortals (10)

Flex Framework Smackdown
Flex Framework SmackdownFlex Framework Smackdown
Flex Framework Smackdown
 
Becoming Indie
Becoming IndieBecoming Indie
Becoming Indie
 
Huffduffer
HuffdufferHuffduffer
Huffduffer
 
2 whats-new-in-ios7-m2-xcode-slides
2 whats-new-in-ios7-m2-xcode-slides2 whats-new-in-ios7-m2-xcode-slides
2 whats-new-in-ios7-m2-xcode-slides
 
Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)
 
So what's a web app? introduction to the chrome web store
So what's a web app? introduction to the chrome web storeSo what's a web app? introduction to the chrome web store
So what's a web app? introduction to the chrome web store
 
Becoming Indie
Becoming IndieBecoming Indie
Becoming Indie
 
WordPress SEO - SEO-Campixx
WordPress SEO - SEO-CampixxWordPress SEO - SEO-Campixx
WordPress SEO - SEO-Campixx
 
Simplified Security Code Review Process
Simplified Security Code Review ProcessSimplified Security Code Review Process
Simplified Security Code Review Process
 
Frontend tooling and workflows
Frontend tooling and workflowsFrontend tooling and workflows
Frontend tooling and workflows
 

More from Tony Hillerson (8)

Totally Build Apps for Free! (not really)
Totally Build Apps for Free! (not really)Totally Build Apps for Free! (not really)
Totally Build Apps for Free! (not really)
 
Git for Android Developers
Git for Android DevelopersGit for Android Developers
Git for Android Developers
 
Designing an Android App from Idea to Market
Designing an Android App from Idea to MarketDesigning an Android App from Idea to Market
Designing an Android App from Idea to Market
 
Rails on HBase
Rails on HBaseRails on HBase
Rails on HBase
 
SCM for Android Developers Using Git
SCM for Android Developers Using GitSCM for Android Developers Using Git
SCM for Android Developers Using Git
 
Flex With Rubyamf
Flex With RubyamfFlex With Rubyamf
Flex With Rubyamf
 
First Android Experience
First Android ExperienceFirst Android Experience
First Android Experience
 
Flex And Rails
Flex And RailsFlex And Rails
Flex And Rails
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

iPhone Persistence For Mere Mortals

  • 1. Code and Slides: http://thillerson.googlecode.com iPhone Persistence Tony Hillerson For Mere Mortals Software Architect Tuesday, March 3, 2009
  • 2. Persistence Code and Slides: http://thillerson.googlecode.com Tuesday, March 3, 2009
  • 3. Persistence Code and Slides: http://thillerson.googlecode.com ... or it means saving stuff. Tuesday, March 3, 2009
  • 4. Persistence: Disclaimer Code and Slides: http://thillerson.googlecode.com BTW: I’m a n00b Tuesday, March 3, 2009
  • 5. Code and Slides: http://thillerson.googlecode.com Persistence: Savin’ stuff on ur fone Your options Tuesday, March 3, 2009
  • 6. Persistence: Options Code and Slides: http://thillerson.googlecode.com Settings SQLite Filesystem The Internets Tuesday, March 3, 2009
  • 7. Persistence: Options Code and Slides: http://thillerson.googlecode.com Settings SQLite Filesystem The Internets Tuesday, March 3, 2009
  • 8. Persistence: Our Sweet App Code and Slides: http://thillerson.googlecode.com Tuesday, March 3, 2009
  • 9. Persistence: Sweet Codes http://github.com/thillerson/grocery_getter/ Code and Slides: http://thillerson.googlecode.com Download Tuesday, March 3, 2009
  • 10. Code and Slides: http://thillerson.googlecode.com Persistence: Settings Yours or Apple’s? Tuesday, March 3, 2009
  • 11. Persistence: Settings Code and Slides: http://thillerson.googlecode.com Apple’s => Settings.bundle Yours => Roll your own Both end up in NSUserDefaults Tuesday, March 3, 2009
  • 12. Persistence: Settings Code and Slides: http://thillerson.googlecode.com Can be one of: NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary Tuesday, March 3, 2009
  • 13. Persistence: Settings Code and Slides: http://thillerson.googlecode.com NSUserDefaults *settings = [NSUserDefaults standardUserDefaults]; [settings setBool:YES forKey:@quot;shouldSortAfterCompletequot;]; [NSUserDefaults standardUserDefaults]; [NSUserDefaults resetStandardUserDefaults]; BOOL on = [settings boolForKey:@quot;shouldSortAfterCompletequot;]; Tuesday, March 3, 2009
  • 14. Code and Slides: http://thillerson.googlecode.com Persistence: SQLite It’s small, but it’s feisty! Tuesday, March 3, 2009
  • 15. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com YO DAWG I HERD YOU LIEK DATA... Tuesday, March 3, 2009
  • 16. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com SQLite - Embedded Relational Database written in C Tuesday, March 3, 2009
  • 17. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com Embedded Relational Database written in C Tuesday, March 3, 2009
  • 18. SQLite: Code and Slides: Hic Draconae http://thillerson.googlecode.com Sunt CocoaTouch: Terra Firma Tuesday, March 3, 2009
  • 19. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com 3 Takes on our Sweet App: • SQLite C API • fmdb + fmdb-migration- manager • Aptiva’s ActiveRecord Tuesday, March 3, 2009
  • 20. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com SQL C API: http://www.sqlite.org/c3ref/ funclist.html Tuesday, March 3, 2009
  • 21. Persistence: SQLite Code and Slides: • fmdb - Thin Wrapper around SQLite http://thillerson.googlecode.com • fmdb-migration-manager - Rails-style migrations using fmdb • http://code.google.com/p/ ycode/ • http://github.com/mocra/fmdb- migration-manager/ Tuesday, March 3, 2009
  • 22. Persistence: SQLite Code and Slides: • Aptiva’s ActiveRecord http://thillerson.googlecode.com In software engineering, the active record pattern is a design pattern frequently found in software that stores its data in relational databases. It was named by Martin Fowler in his book Patterns of Enterprise Application Architecture. - http://en.wikipedia.org/wiki/Active_record_pattern http://github.com/aptiva/ activerecord/ Tuesday, March 3, 2009
  • 23. Persistence: SQLite Code and Slides: http://thillerson.googlecode.com Quick! To the CODES! Tuesday, March 3, 2009
  • 24. Code and Slides: http://thillerson.googlecode.com Persistence: A Few Points Take two, they’re small! Tuesday, March 3, 2009
  • 25. Persistence: Tips Code and Slides: http://thillerson.googlecode.com Consider how your settings will be used Tuesday, March 3, 2009
  • 26. Persistence: Tips Code and Slides: http://thillerson.googlecode.com A database is an implementation detail Tuesday, March 3, 2009
  • 27. Persistence: Tips Code and Slides: http://thillerson.googlecode.com Encapsulation is your friend Tuesday, March 3, 2009
  • 28. Persistence: Tips Code and Slides: http://thillerson.googlecode.com Don’t forget to move your database Tuesday, March 3, 2009
  • 29. Persistence: Tips Code and Slides: http://thillerson.googlecode.com SQLite write speed is constrained by transactions Tuesday, March 3, 2009
  • 30. Persistence: Tips Code and Slides: http://thillerson.googlecode.com SQLite uses duck-typing Tuesday, March 3, 2009
  • 31. Persistence: Tips Code and Slides: http://thillerson.googlecode.com FMDB: executeQuery != executeUpdate Tuesday, March 3, 2009
  • 32. Persistence: Tips Code and Slides: http://thillerson.googlecode.com RTFS Tuesday, March 3, 2009
  • 33. Persistence: Thank you! Tony Hillerson Code and Slides: Software Architect http://thillerson.googlecode.com slideshare.com/thillerson github.com/thillerson twitter.com/thillerson brightkite.com/thillerson EffectiveUI.com Tuesday, March 3, 2009