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

  • Home
  • SEARCH
  • 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 6956323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:51:15+00:00 2026-05-27T14:51:15+00:00

I was using a SQL function in a Mysql 5.1 server, which took about

  • 0

I was using a SQL function in a Mysql 5.1 server, which took about 1 second to process 70k rows. Now they upgraded the server to 5.5 and the same function is extremely slow.

I’ve tried different data types, with/without DETERMINISTIC or READS SQL DATA, and the improvement, if any, is very small.

I know a SQL function is not the best option when dealing with lots of rows, but it was doing well in the previous installation. Mostly I want to know if they introduced a bug in 5.5 and if it’s a good idea to keep using SQL functions…

Anyone noticed something like this?

This is the function:

CREATE FUNCTION `split_str`(x VARCHAR(255), delim VARCHAR(12), pos INT) RETURNS varchar(50) CHARSET latin1    DETERMINISTIC
BEGIN



RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos),
       LENGTH(SUBSTRING_INDEX(x, delim, pos -1)) + 1),
       delim, '');

END
  • 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-27T14:51:16+00:00Added an answer on May 27, 2026 at 2:51 pm

    Have you checked if you have the absolutely latest mysql 5.5.x on that server?

    I believe I’ve seen this bug discussed before, but I unfortunatly dont have the mysql bug number available. I think that the issue I remember is fixed in the latest minor version upgrade to the 5.5.x series though.

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

Sidebar

Related Questions

I'm using SQL Server 2005, with a case sensitive database.. In a search function,
Using SQL Server, which is the fastest or best practice method to use for
I'm trying to create a procedure which extracts data from a MySQL server (using
How can we handle ascii characters using sql server 2005? Which data type can
I'm using Linq to SQL on an SQL Compact database. I have a function
What are the sql exceptions will thrown by using the following function: Read Update
Using SQL Server, how do I split a string so I can access item
Using sql server 2000, I would like to take my production data and put
Using SQL Server 2005 and Management Studio how do I insert a picture into
[using SQL Server 2005] I have a table full of users, I want 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.