• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 37
  • Last Modified:

Text in DB? (How to search a large amount of text?)

I have an ASP.Net/C# application with SQL Server 2014.

I created a table and in one of the columns, I save plain text. This is , for example, some pages text from a book. The column is varchar(max). This table has multiple rows.

In the ASP.Net application, I have a search button and user can enter a keyword and I search this table and find the text and display it  This works ....

But by saving large amount of text in the database, the size of the database grows. How can I go about doing this text search?

One idea that I thought of is to save the text in , for example, text files and then search the text files with iTextsharp maybe.

Any ideas?
0
Camillia
Asked:
Camillia
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi Camillia,

Database search is always going to be faster than file based searching. And to simplify things for your scenario, you can use Full-Text Searching.

Read more about Full-Text Search here: https://docs.microsoft.com/en-us/sql/relational-databases/search/full-text-search?view=sql-server-2017

In case you want to use ASP.Net based Full-Text Search - which I will not recommend [In my opinion it is better to handle FTS at database level] then you can use http://www.sphinxsearch.com/downloads/current/.

Also I would like to understand what kind of database size we are looking at? Is it going to be in GBs? TBs?

Regards,
Chinmay.
0
 
CamilliaAuthor Commented:
Also I would like to understand what kind of database size we are looking at? Is it going to be in GBs? TBs?

GBs

I've used FullText Search once before. I don't know about saving all this text in the database. I worked on another project and we saved the chapter texts in the database, I think.

I'll think about it some more.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now