Results 1 to 5 of 5
Thread: parsing/storing large text data
- 10-17-2008, 09:49 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 7
- Rep Power
- 0
parsing/storing large text data
Hi All,
I have seen a lot of pre-cooked java forum packages on the net but I would like to code my own and hence need some support. I have expertise in databases and have designed the required schema. Now to start I would like to have some help on this issue:
In forums, eg this one, users may reply with long text inputs. What would be the best way to store them? One option is to use a Text field in the database which stores 65K characters. Another is to convert the large text to binary and store.
Pls tell if there is any other option, else how shall I about accomplishing the second one?
Thank You.
- 10-18-2008, 10:57 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I don't know there is any other way is available. Over the years I'm using Text in SQL. It's much better so far so good. Even though data converted into binary values, I think no need to convert them into binaries within our code.
What you are trying to do with this. Performance wise I don't see any issues working with Text.
- 10-18-2008, 04:24 PM #3
is server to be remote?
Can you provide some detail as to whether these databases are commercial in nature or student work, and is the database to be loaded onto a server remotely or can you code the whole thing directly in the application. The reason I ask this is expertise in databases and would like to have some help on this issue taken together suggests to me you will be taking a pure database approch. That raises in my mind an obvious ambiguity along the lines of one can write a file very simply with code, and storing data as a string or as binary is not a paticularly difficult design issue. So it is, politely intended, what gives here. (?)
Compression, through available Java classes is available but given the massive storage available at commodity pricing I would focus on "what makes sense to you" before I would look to established design for preliminary concepting. I see a lot of work in Marty Hall's Core Servlets book that may provide a better starting place than considering the matter directly, there are some issues related to scaling that may be of profound consequence later. If this will ever run on a distributed Tier-1 arena, that would be well worth the effort later.
There are plenty of options, as long as you stay with Java, the competitors are not True Beans.Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 10-19-2008, 06:32 PM #4
Member
- Join Date
- Oct 2008
- Posts
- 7
- Rep Power
- 0
The database is designed to hold data in a recursive manner, self-referencing keys leading to space optimization. The doubt I had was raised because if text is saved as text itself,
1. it occupies more space.
2. there is a limit to the number of characters. Posts in a forum may exceed that.
also there is a feature in all databases to store large objects, and objects in binary form. this method i can use to also save images in the db itself(though i am not planning to do that).
Kindly advise me the good techniques to go about solving my problem.
- 10-19-2008, 06:34 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
problems about storing binary data to mysql db using PreparedStatement
By xiechao in forum New To JavaReplies: 0Last Post: 04-22-2008, 11:57 AM -
[SOLVED] How to Extract Data From this text file?
By jazz2k8 in forum New To JavaReplies: 31Last Post: 04-18-2008, 10:45 AM -
Storing data permanently
By shaungoater in forum New To JavaReplies: 2Last Post: 03-10-2008, 04:18 PM -
Displaying data into text area
By abhiN in forum New To JavaReplies: 1Last Post: 01-22-2008, 10:30 AM -
Storing Data
By Khorod in forum New To JavaReplies: 1Last Post: 08-03-2007, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks