Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:42:28+00:00 2026-06-02T16:42:28+00:00

I have been working on a relational data base with Codeigniter and found out

  • 0

I have been working on a relational data base with Codeigniter and found out that DataMapper is useless for serious project. Codeigniter’s Active record is useless as it is not providing a many to many or one to many methodology as well. DataMapper is slow and non configurable!

  1. It loads the whole table to an object when you query.
  2. When you put “A” in the first time the second time you put an “A” you will have 2 As in the data base. It does not have the Ignore
    option like SQL.And you have to query for an item to see if it exists, if not, then Insert it.
  3. They did a lot coding for it but it does not seem to be any good for making a huge data base
  4. It is not fast for querying.

Is that seem to be the consensus among the community. Do you recommend using pure mysql in the php to do operations on many to many and one to many? Or do you think I am wrong! Please feel free to advise me on that.
My question is what do you use to do your data base with as a professional web designer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:42:30+00:00Added an answer on June 2, 2026 at 4:42 pm

    Bit of an odd statement.

    You define your requirements, and then select the tools that meet those requirements, not the other way around.

    Datamapper is an ORM, an Object Relational Mapper. In this case one that follows the Active Record design pattern (do not confuse this with CI’s AR, which is no active record, it’s a query builder). It will map a data entity (in this case a record in an RDBMS table) to an object, and it is aware of the relationships between those objects.

    It is what an ORM does. Is it slower than using PHP’s native functions to directly access the database? Absolutely. Any level of abstraction added will add processing time.

    It is not the goal of an ORM to be the fastest in data manipulation, it is the goal to abstract your data manipulation from your controller logic, which makes it easier and quicker to write applications, and absolutely faster to maintain such applications. As in a business context time == money, this is where the benefits are. If you code for free and run your code on a two-bit shared host, then maybe an ORM is not for you.

    Also, an ORM is not a swiss army knife. It is designed for a specific purpose, which is an object oriented approach to data collections, and to manipulate those collections and their relationships.

    Do not use it if it is not the correct tool for the job. If you need to mass update a million records based on some weird criteria, write a native SQL query instead. Do that in a custom model method to keep your data manipulation code abstracted from your controller.

    As to your specific comments:

    • Datamapper is slow: Compared to what?
    • It is not configurable: See http://datamapper.wanwizard.eu/pages/config.html.
    • It loads the entire table: If you get() the entire table, yes. doesn’t seem odd to me.
    • If you create two objects with the same data, it saves twice: Yes. Same if you run the same UPDATE query twice.
    • It is not suited for large databases: I have Datamapper backed applications with terabyte size databases, so I don’t see the relation to size.
    • It is not fast: See answer nr. 1.

    If you are a professional web designer, you should be aware of the proper way to design and build an application using an MVC architecture, and use the right toolset for the job so that you can deliver an application to your client in a timely fasion.

    time == money, and if you can deliver faster, and you can maintain or improve faster, you’ll retain your customers. An ORM can help you with that. But do not use it for what it is not meant to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a web project that stores locations for users. The
I have been working with relational databases for sometime, but it only recently occurred
I have been working on a web services related project for about the last
I have been working with a string[] array in C# that gets returned from
I have been working on projects that deal with 2-Dimensional graphing, UML diagramming and
I have been working through a very small-scale WPF project in order to familiarize
Have been working on this question for a couple hours and have come close
I have been working with android for a little while now and feel pretty
I have been working with Objective C for a couple of months now and
I have been working with the book Practical Ruby Gems. It gave me the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.