« first day (1359 days earlier)      last day (1299 days later) » 

4:59 PM
@m59 you want to use a fulltext index. I highly recommend ElasticSearch.
I haven't used InnoDB fulltext indexing in 5.6, but I used MyISAM's fulltext indexing in older versions, and was not impressed
It looks like the InnoDB functionality is exactly the same
 
 
1 hour later…
m59
6:23 PM
@TehShrike well that looks... overwhelming :D
 
@m59 ElasticSearch?
It is a bit overwhelming. I'm not an expert myself. But even the bare minimum of understanding gets you a lot more usefulness than the indexing built in to MySQL
you can use it as a straight-up key-value document store
and then roll with the standard tokenizer and indexer on the field you want to search
and it will likely work pretty well
but then unlike the one built into MySQL, when you realize you want to tokenize or index the values pretty easily, you can start to tweak things
 
m59
7:09 PM
The bare minimum understanding will probably take me a week of reading those docs. I looked into it for about an hour and have no idea what this thing is about.
 
7:53 PM
@m59 once you have it running locally, you create a mapping elasticsearch.org/guide/en/elasticsearch/reference/current/…
 
m59
I have no idea what any of that is ;D I'll look into it later.
I always have this problem. There's something fundamental that I don't understand, and I can't understand anything else until I figure out what question I need answered and answer it.
I think that would probably have something to do with mysql..
 
@m59 and Elasticsearch isn't the easiest to pick up from the docs sadly
 
m59
The picture that got built in my head (probably awfully wrong) is that this thing listens for certain requests to my api and then stores the input/output so it can do stuff with it
 
@m59 as to the general problem, you need to be able to search for blocks of text by the words that they contain, right?
 
m59
but I don't think that can be right because it would be all kinds of flimsy.
 
8:02 PM
@m59 Elasticsearch acts like a document store like mongo or whatever
there's a key, and you throw JSON documents at it
you can use it like a straight-up document store if you want
but in the background, it has the ability to index fields in your documents using Lucene
 
`rebuild your FULLTEXT indexes.` What does it mean.
Does it mean, I need to alter the table column with FULLTEXT type again.
 
"To rebuild the indexes in this case, it is sufficient to do a QUICK repair operation: REPAIR TABLE tbl_name QUICK; Alternatively, use ALTER TABLE with the DROP INDEX and ADD INDEX options to drop and re-create each FULLTEXT index. In some cases, this may be faster than a repair operation."
@m59 there are magical things that exist that can automatically throw new documents from your database table into your Elasticsearch index, but by default, you would have to send documents to Elasticsearch whenever you save them to your database
 
@TehShrike Does it effect my data, as i have huge chunks of data in it.
 
@Rafee Only if your data is already corrupted.
 
8:28 PM
 
@Rafee ;-P
Which is to say, it should be completely fine to do.
 
Yeah!, Its underprogress and I dont know yet..
wow, I got an Error.
Error Code: 2013. Lost connection to MySQL server during query 600.494 sec
@TehShrike I was executing this query from MySQL Workbench..
 
@Rafee so the client got disconnected from the server for some reason
normally the query will finish running anyway
 
yeah, I will run from command line
 
8:45 PM
@Rafee no, I mean you shouldn't have to run it again
 
@TehShrike I just checked out that, now I can fulltext with 3 characters. I have no idea.
May be its already executed it.
 
@Rafee yeah, even if you get disconnected, the query keeps executing
 
oh!. well thanks man.. other wise.. Rico will be still in JAW dropping mode
 
lulz penguins
 
I got one doubt raised. Why is that query will finish running anyway
any idea or something.
 
8:52 PM
The server isn't dependent on the query to run the operation
It's not constantly checking with the client "are you still there?"
 
yes
 
it doesn't communicate back with the client until it has some results to send back
which, in the case of an ALTER TABLE, isn't until after the ALTER is done
 
oohh, I understood now.
 

« first day (1359 days earlier)      last day (1299 days later) »