473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Storing large amounts of information in MySQL

I have been doing research, and according to what I have found, the field format TEXT supposedly supports unlimited storage. I have a web application, which I am trying to write a save function for. The save function gets all of the dynamic parts of the page, and inputs them into a MySQL databse.

I was running into problems on pages that have a lot of generated content (mainly due to generated drop down menus with options). The end result is that not all of my information is getting stored in the database. I've been testing the character count before I input using javascript, and it turns out to be right around 85,000 to 90,000 characters.

I am using MySQL 5.0.67.

Any suggestions on getting a single field to actually support unlimited information would be greatly appreciated.
Feb 3 '09 #1
3 4106
r035198x
13,262 8TB
TEXT only stores a maximum of 2 ^(61) - 1 characters which my calculator says is 65 535 characters.
Better use MEDIUMTEXT which is 2^(24) - 1 characters or bring the sledgehammer LONGTEXT to the party (4G a.k.a 2 (32) - 1)
Feb 3 '09 #2
wizardry
201 100+
this doc shows how to increase your packet buffer and explains more about blob and text.

I personally suggest longblob instead of longtext you can do a lot of dml with long blob.

http://dev.mysql.com/doc/refman/5.0/en/blob.html


engine and table restrictions
http://dev.mysql.com/doc/refman/5.0/...trictions.html

quick note about memory allocation in using blobs and text with size problems
http://lists.mysql.com/mysql/200703

hope this helps
Feb 5 '09 #3
r035198x
13,262 8TB
You should rather use Blob for binary data only.
Feb 6 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: flamesrock | last post by:
Hi, Basically, what I'm trying to do is store large amounts of data in a list or dictionary and then convert that to a custom formatted xml file. My list looks roughly like this: (d,r,p]]])...
0
by: John Hicks | last post by:
Is there an accepted best practice on whether to store decimal currency amounts (e.g. dollars and cents) in MySQL decimal column types? Certainly, the most straightforward way is to use decimal...
2
by: T.A.C. One | last post by:
I have to handle a very big (~50 gigabyte) database (quite all in a table), and I am going to use mysql. Can mysql handle all that ammount of data? What problems I am going to have? Should I...
1
by: dave123 | last post by:
I am using a access database to store data that is accesses by an asp web page. When I format a field as text the most that I can store in it is 255 characters. Is there a way of storing larger...
0
by: Michael Bredbury | last post by:
I am developing using Visual Studio .NET 2002 using ASP.NET and VB.NET. This is a web-based project which needs to install various ActiveX components on the users PC. ActiveX is needed because the...
6
by: Mudcat | last post by:
Hi, I am trying to build a tool that analyzes stock data. Therefore I am going to download and store quite a vast amount of it. Just for a general number - assuming there are about 7000 listed...
3
by: jkugler | last post by:
Hello, I am trying to store huge amounts of data from xml files and put them into a MySQL database. The xml files all are in this format: <?xml version="1.0" encoding="UTF-8"?>...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
7
by: Mike | last post by:
I have developed an application, for psyc patients.... they type in very personal information in a web form to help them work through problems in their lives. Once they enter the info, I encrypt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.