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 8005677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:17:38+00:00 2026-06-04T17:17:38+00:00

I am about to develop a new application and am considering the best practices

  • 0

I am about to develop a new application and am considering the best practices

I have read about ActiveRecords and I have used it before but I always want something that would make changes easier and less time consuming.

Using active record and other ORMs:
I believe that these methods loads all records from the database when sometimes I may need just one or two

Like if I want to do paging, i need to pass the pageIndex and pageSize, how would you do that without loading all the data

Like if i want multiple fields in my WHERE clause
Wouldn’t I load all records and filter based on my criteria

I would like all the selection/filtering/sorting to happen at the database level

Adding static methods to perform those operations look like I would be doing the wrong thing

Are there ORMs that handle that gracefully?

I want to have utmost control over the application flow so I can easily optimize when necessary.

Note: I am still researching on DAO and other methods but I want opinions on Active Record in case I still want to use it

Thanks

  • 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-04T17:17:39+00:00Added an answer on June 4, 2026 at 5:17 pm

    If you are using C# 3.5+, I believe Linq, IQueryable and proper Data Service Layer can solve your problem.

    1. Paging. IQueryable is by default, not commit until you call toList(). You can have your Data Store return IQueryable with ALL items, but do the filtering and paging at last, and only the items you needed is processed,

    e.g.

    var items = getAllItems(); // IQueyrable<Item>, from database
    
    var paged = items.Skip(50).Take(10); // Database still not queried
    paged.toList(); // Database return 10 items only
    
    1. Filtering and WHERE. Same as above

    2. Most ORM works with Linq. E.g. NHibernate

    3. utmost control over the application flow .

      Probably you need to write your own custom Linq Providers, but trust me, you don’t have to.

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

Sidebar

Related Questions

I am using VS2008 to develop a WinForms 2.0 application. I have read about
I have to decide about a new big business application we will develop in
I have to develop an application that display some information about the possessor of
I am using Codeigniter to develop an application, and have been reading bits about
I am new about Symbian Series 40/60. Which SDK is used to develop applications
I'm new to Django... I will develop a web application that will have subdomains
i am about to develop a new application and I was looking at JXSE
I'm planning to develop a web application which will have many static pages (about,
I want to develop a Windows application. Honestly I care little about cross-platforms for
I am about to develop a new iPhone application in which I need to

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.