My current Mysql database has a table with a Text field and a few blob
fields. The average record can range from 500kb to 5mg, the bulk
coming from the blob fields. I select from each record based on words
in the Text field, but after about 3000 records, the search takes too
long. If I setup another table that has just the text field and shares
a key with a table containing the blobs, will it be quicker to search
the Text field?
In other words, does having larger records slow down my search in the
Text field?
-Ace 4 2823
Ok, I found another thread that mentioned that MyISAM reads the whole
record when queried. So if I go with splitting the table into an Index
and Content table that have a common key (docID), will the query:
SELECT some_field FROM Index, Content WHERE MATCH(field_in_Index)
AGAINST (‘word') AND Index.docID = Content.docID;
still be as slow since I'm searching in Content for its docID?
Thank you,
Ace
Ok, I found another thread that mentioned that MyISAM reads the whole
record when queried. So if I go with splitting the table into an Index
and Content table that have a common key (docID), will the query:
SELECT some_field FROM Index, Content WHERE MATCH(field_in_Index)
AGAINST (‘word') AND Index.docID = Content.docID;
still be as slow since I'm searching in Content for its docID?
Thank you,
Ace
Ace Alexander wrote: Ok, I found another thread that mentioned that MyISAM reads the whole record when queried. So if I go with splitting the table into an Index and Content table that have a common key (docID), will the query:
SELECT some_field FROM Index, Content WHERE MATCH(field_in_Index) AGAINST (‘word') AND Index.docID = Content.docID;
still be as slow since I'm searching in Content for its docID? Thank you, Ace
I'm a newbie with MySQL (about six months) - I'm pretty sure that your
table/index will speed the query, however it has more to do with the
index than it has to do with the record size... Someone else might
correct me on this...
One suggestion though: If you're only wanting to read a single record,
use LIMIT in your SELECT otherwise the *full* database/table is read
because it will be searching for multiple records. This should speed
things up significantly.
Hope the above helps...
randell d.
Ace Alexander wrote: Ok, I found another thread that mentioned that MyISAM reads the whole record when queried. So if I go with splitting the table into an Index and Content table that have a common key (docID), will the query:
SELECT some_field FROM Index, Content WHERE MATCH(field_in_Index) AGAINST (‘word') AND Index.docID = Content.docID;
still be as slow since I'm searching in Content for its docID? Thank you, Ace
I'm a newbie with MySQL (about six months) - I'm pretty sure that your
table/index will speed the query, however it has more to do with the
index than it has to do with the record size... Someone else might
correct me on this...
One suggestion though: If you're only wanting to read a single record,
use LIMIT in your SELECT otherwise the *full* database/table is read
because it will be searching for multiple records. This should speed
things up significantly.
Hope the above helps...
randell d. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sam G |
last post by:
Hi folks,
What I'd like to do for a website I'm designing with PHP/MySQL is have
a number of registered users who can make friends with each other...
so if person 1 wants to be friends with...
|
by: Bob Bedford |
last post by:
I've a form that use a combobox along with other fields. When the user
submit the form, many tests are done. If any test fails, then I show the
form again with previously entered values.
My...
|
by: John |
last post by:
Hi,
I have the following code:
<FORM>
<font size="3">Brands </font><br />
<SELECT SIZE="1" NAME="categorylist" STYLE="font-size: 8pt">
<OPTION VALUE=http://my.domain,.com/cetegory1.html...
|
by: mathilda |
last post by:
My boss has been adamant that SELECT DISTINCT is a faster query than
SELECT all other factors being equal. I disagree. We are linking an
Access front end to a SQL Server back end and normally are...
|
by: Neil |
last post by:
I have a situation with an ODBC linked view in an Access 2000 MDB with a SQL
7 back end. The view is scrolling very slowly. However, if I open the view
in an ADP file, it scrolls quickly.
I...
|
by: Tim Smith |
last post by:
I've been benchmarking some very simple databases. By simple, I mean a table
like this:
CREATE TABLE bench (
id SERIAL,
data TEXT )
CREATE INDEX bench_data_index ON bench (data)
which is...
|
by: Michael |
last post by:
I'm writing an application that decodes a file containing binary
records. Each record is a particular event type. Each record is
translated into ASCII and then written to a file. Each file contains...
|
by: charles.lobo |
last post by:
Hi,
I have recently begun using templates in C++ and have found it to be
quite useful. However, hearing stories of code bloat and assorted
problems I decided to write a couple of small programs...
|
by: ykhamitkar |
last post by:
Hi There,
I have some questions about ms access database
1. How much data ms access can handle with good speed.
2. Does the size of column affect the speed of ms access database.
(If i...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |