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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:54:04+00:00 2026-05-19T16:54:04+00:00

I wanted to know that when given the option, is it faster to do

  • 0

I wanted to know that when given the option, is it faster to do processing with php or mysql?
For example, lets say that I want to concatenate two values from two columns should I do

SELECT col1,col2 FROM table WHERE conditions

And then concatenate in php

or should I do

SELECT CONCAT(col1,col2) as concatenated FROM table WHERE conditions

and then not have to concatenate?

Another example would be limiting the size of returned strings which can be done in sql with LEFT or in php using substr

If they are the same speed then which is the prefered method?

I am using recent version of xampp on a windows 7 machine.

  • 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-05-19T16:54:04+00:00Added an answer on May 19, 2026 at 4:54 pm

    For the most part, performing batch operations on your data is going to be faster at the database level. The engines are optimized for working with sets of data like this, and they can concurrently process and transfer data (for very large result sets).

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

Sidebar

Related Questions

I'm new to PHP programming and I wanted to know that is it possible
I wanted to know that which events are triggered when there is a page
We know that we can use a concept Java Package, but I just wanted
I wanted to know what is the maximum size of the file that we
I wanted to know the cart total - shipping in the checkout page.So that
This is something that's I've wanted to know recently, mostly out of curiousity. I'm
I have a function that checks user input and wanted to know if it
before I ask my question I wanted to let everybody know that I appreciate
Given that I have a table with a column of TEXT in it (MySQL
I wanted to know if a given binary tree is a binary search tree

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.