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 2865
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 person 2, 1 can add 2 and then
they will be recognized as friends. I also want, if person 3 is
friends with 2, and goes to person 1's page, person 3 will see that 1
is friends with 2 who is 3's friend. So 3 can see the connections that
lead him to...
|
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 problem: when I show back the form with previously entered values, I
can't set the entered value of the combobox. I've registered the value, but
how to go trough the value, and select the right one.
I'd like something like:
|
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 selected>Category
1</OPTION>
<OPTION VALUE=http://my.domain,.com/cetegory2.html>Category
|
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 only
returning one record. She states that with disctinct the query stops
as soon as it finds a matching record. Both of us are relative novices
in database theory (obviously).
Can someone help settle this?
|
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 needed to use an ODBC link for the view because it needs to be editable.
Otherwise, I would have used a pass-through query.
In previous discussions about using an MDB file vs. an ADP file as a front
end for SQL Server, the impression I got was that...
| |
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 filled with 100k records, where the data values for each record are
distinct (the data for record N is "text_item_N").
|
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
the same events. At the moment each record is processed one after the
other. It taks about 1m40s to process a large file containing 70,000
records. Would my application benifit from multiple threads and mmap?
If so what is the best way to...
|
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 to check. What I
expected was that there would be minor code bloat and some speed
improvement when using templates. However...
I wrote a basic list container (using templates), and a list container
(using virtual derived classes). I also tried...
|
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 keep size as 100 instead of 50 in the Field Size property in design view)
3. If I create a client server application and 10 people work on the same database at the same time, Would it affect the speed of the database
4. Is there any way I can keep a...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |