Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Query Timeout if "too many" columns are selected #1485

Unanswered
johnweidauer asked this question in Q&A
Discussion options

I have a query that returns data, but if I include too many columns in my web application using mysqlconnector, it will timeout. I have written this query both is plain text and in a procedure, but when more than 15 columns are to be returned, timeout. Is there a column limit, or a size limit on the return? I have tried searching for this topic, but was unable to find anything. Can anyone tell me if this is a column limit or a size limit. The query in question is only returning 1 row of all columns. *This table was not created by me and is a table created by the vendor, but I do have access to make modifications to both the table and MySQL Server 5.7.

My Schema:
CarrierKey int(11) NOT NULL AUTO_INCREMENT,
code varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
name_company varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
address varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
city varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
state_code varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
zip varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
phone varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
fax varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
contact varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
fee_schedule varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
class varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
fees varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'STAND',
edi_format varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
code_payment varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
code_payment2 varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
code_adjustment varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
receiver_type varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
code_category varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
claim_filing varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
payer_id_prof varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
unique_provider_id varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
network_status varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
state_specific varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT ''

You must be logged in to vote

Replies: 1 comment

Comment options

Is there a column limit, or a size limit on the return?

There's nothing in MySqlConnector that enforces a limit; it sends the query to the server, then waits for the response to come in over the network. A timeout generally indicates that no such response was received in time.

It's hard to speculate about what might be happening but could there be some component between the database server and your application that drops packets over a certain size?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.