SlideShare a Scribd company logo
1 of 11
Active Record  Presentation by Mambe Churchill Nanje CEO, www.afrovisiongroup.com At Barcamp Cameroon 2009
What is Active Record?   Active Record is an implementation of Object Relational Mapping where in a database is manipulated by highly linked objects(MODELS) interfacing the database tables and their content e.g instead of  SELECT * FROM accounts WHERE user=1 with Active records we do  user=new User(1); //sql gets generated for you
Assumed Knowledge   To fully understand active record you need to understand the following ,[object Object],[object Object]
HOW IT WORKS Example: car park management system Database of Cars Code without Active Record: connection=new Connection(h,u,p); query='select * from cars where id=1';  rs=connection.statement.execute(query); car=rs.get(0); print(car.brand); //mercedes print(car.owner); //francis Code With Active Record: database=new Database(h,u,p); car=database.get('cars',1); print(car.brand); //mercedes print(car.owner); //francis
CASE STUDY WWW.UBSTUDENTS.COM : 2007 ,[object Object],[object Object],[object Object],[object Object],[object Object],University of Buea Students online portal
CASE STUDY WWW.NAIJABORN.COM  : 2009 CASE STUDY ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Online community of Nigerians and their career info
CASE STUDY WWW.AFRIKEO.COM  2008 ,[object Object],[object Object],[object Object],[object Object],Aggregator and search engine for African news, blogs, classified
CASE STUDY WWW.VILLAGEDIARY.ORG  : 2009 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Online platform to record cases in villages
Advantages of Active Record •  Productivity –  Eliminates lots of repetitive code – focus on business logic –  Database code is generated automatically •  Maintainability –  Fewer lines of code – easier to understand –  Easier to manage change in the object model •   Performance –  Lazy loading – associations are fetched when needed –  Caching •   Database vendor independence –  The underlying database is abstracted away –  Can be configured outside the application
More about Active Record ,[object Object],[object Object],Cool Example Code allCars=database.find_all('cars'); cars=database.get_where_brand('cars','mercedes'); cars=database.get('cars',1).owner.name;
Thank you For more informationa about me www.afrovisiongroup.com http://mambenanje.blogspot.com www.twitter.com/mambenanje www.facebook.com/mambenanje other links www.blackamphi.com www.nexdimempire.com

More Related Content

Viewers also liked

Portfolio Beatriz Braga
Portfolio Beatriz BragaPortfolio Beatriz Braga
Portfolio Beatriz Braga
Beatriz Braga
 
Mesopotamia and the Fertile Crescent
Mesopotamia and the Fertile CrescentMesopotamia and the Fertile Crescent
Mesopotamia and the Fertile Crescent
MISSRMANN
 

Viewers also liked (17)

Dtea Class Of 65
Dtea Class Of 65Dtea Class Of 65
Dtea Class Of 65
 
1963 we shall overcome
1963   we shall overcome1963   we shall overcome
1963 we shall overcome
 
Va pensiero
Va pensieroVa pensiero
Va pensiero
 
Pps notre père (peteris vasks)
Pps notre père (peteris vasks)Pps notre père (peteris vasks)
Pps notre père (peteris vasks)
 
Pan
PanPan
Pan
 
Ulysses
UlyssesUlysses
Ulysses
 
Brandl March 19 2010 Talk
Brandl  March 19 2010 TalkBrandl  March 19 2010 Talk
Brandl March 19 2010 Talk
 
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
 
Portfolio Beatriz Braga
Portfolio Beatriz BragaPortfolio Beatriz Braga
Portfolio Beatriz Braga
 
3M Talk March 2010
3M  Talk  March 20103M  Talk  March 2010
3M Talk March 2010
 
JWU April 2010 speech
JWU April 2010 speechJWU April 2010 speech
JWU April 2010 speech
 
Pres
PresPres
Pres
 
A Tale Of Two Cities
A Tale Of Two CitiesA Tale Of Two Cities
A Tale Of Two Cities
 
Erewhon
ErewhonErewhon
Erewhon
 
Around The World In 80 Days
Around The World In 80 DaysAround The World In 80 Days
Around The World In 80 Days
 
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
 
Mesopotamia and the Fertile Crescent
Mesopotamia and the Fertile CrescentMesopotamia and the Fertile Crescent
Mesopotamia and the Fertile Crescent
 

Similar to Active Records Barcamp Cameroon 2009

The Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) HadThe Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) Had
Deborah Gastineau
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
Amarjeet Kumar
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
Lucas Jellema
 
Workday overview sigmora
Workday overview sigmoraWorkday overview sigmora
Workday overview sigmora
bgadicha
 
Using PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the EnterpriseUsing PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the Enterprise
webhostingguy
 

Similar to Active Records Barcamp Cameroon 2009 (20)

Symphony Driver Essay
Symphony Driver EssaySymphony Driver Essay
Symphony Driver Essay
 
The Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) HadThe Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) Had
 
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
 
Serverless_with_MongoDB
Serverless_with_MongoDBServerless_with_MongoDB
Serverless_with_MongoDB
 
RavenDB overview
RavenDB overviewRavenDB overview
RavenDB overview
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
 
01 oracle application integration overview
01 oracle application integration overview01 oracle application integration overview
01 oracle application integration overview
 
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botifyapidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
 
Salesforce Presentation
Salesforce PresentationSalesforce Presentation
Salesforce Presentation
 
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-Exp
 
Technology Overview
Technology OverviewTechnology Overview
Technology Overview
 
Workday overview sigmora
Workday overview sigmoraWorkday overview sigmora
Workday overview sigmora
 
Informatica Interview Questions & Answers
Informatica Interview Questions & AnswersInformatica Interview Questions & Answers
Informatica Interview Questions & Answers
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
 
L19 Application Architecture
L19 Application ArchitectureL19 Application Architecture
L19 Application Architecture
 
Concevoir une application scalable dans le Cloud
Concevoir une application scalable dans le CloudConcevoir une application scalable dans le Cloud
Concevoir une application scalable dans le Cloud
 
MongoDB in a Mainframe World
MongoDB in a Mainframe WorldMongoDB in a Mainframe World
MongoDB in a Mainframe World
 
Using PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the EnterpriseUsing PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the Enterprise
 
Brijesh Soni
Brijesh SoniBrijesh Soni
Brijesh Soni
 

Recently uploaded

Recently uploaded (20)

Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 

Active Records Barcamp Cameroon 2009

  • 1. Active Record Presentation by Mambe Churchill Nanje CEO, www.afrovisiongroup.com At Barcamp Cameroon 2009
  • 2. What is Active Record? Active Record is an implementation of Object Relational Mapping where in a database is manipulated by highly linked objects(MODELS) interfacing the database tables and their content e.g instead of SELECT * FROM accounts WHERE user=1 with Active records we do user=new User(1); //sql gets generated for you
  • 3.
  • 4. HOW IT WORKS Example: car park management system Database of Cars Code without Active Record: connection=new Connection(h,u,p); query='select * from cars where id=1'; rs=connection.statement.execute(query); car=rs.get(0); print(car.brand); //mercedes print(car.owner); //francis Code With Active Record: database=new Database(h,u,p); car=database.get('cars',1); print(car.brand); //mercedes print(car.owner); //francis
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Advantages of Active Record • Productivity – Eliminates lots of repetitive code – focus on business logic – Database code is generated automatically • Maintainability – Fewer lines of code – easier to understand – Easier to manage change in the object model • Performance – Lazy loading – associations are fetched when needed – Caching • Database vendor independence – The underlying database is abstracted away – Can be configured outside the application
  • 10.
  • 11. Thank you For more informationa about me www.afrovisiongroup.com http://mambenanje.blogspot.com www.twitter.com/mambenanje www.facebook.com/mambenanje other links www.blackamphi.com www.nexdimempire.com