SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere Àhnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 
RavenDB overview
RavenDB overviewRavenDB overview
RavenDB overview
Igor Moochnick
 
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
 
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
Stéphanie Hertrich
 
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
 

Ähnlich wie 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
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

KĂŒrzlich hochgeladen (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.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...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

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