Questions tagged as 'indices'

1
answer

Create index with a substring field

Is it possible to create an index in mysql but the index field is a substring? For example: Create NON-UNIQUE INDEX nombreInidice on nombreTabla (SUBSTRING(nombreCampo FROM 1 FOR 4)) USING HASH;     
asked by 18.11.2016 / 14:45
1
answer

Solution for PHP Notice: Undefined index: internalid [closed]

I do not understand what is wrong with this code //$expense_categories = explode(chr(13), $row[expense_categories]); $categoryResult=mysqli_query($db,"SELECT category_id,category FROM expense_categories order by category_id"); if(mysqli_num_ro...
asked by 30.03.2017 / 20:25
0
answers

Lucene IndexWriter.addIndexes does not merge indexes

My problem is this, I have a code that apparently is fine. What I try to do is join 2 indexes located in 2 folders. The code is as follows public static void addIndices(String indexPath, boolean create) throws IOException { Analyzer an...
asked by 17.03.2018 / 00:23
0
answers

Add array to another without creating indexes in PHP

I have a foreach () that in each iteration adds arrays of 40 elements to another array, as shown in the following code: foreach($aVideos as $aVideo) { $aVideosReproducciones[] = $this->obtenerReproducciones($aVideos); } Assuming th...
asked by 27.10.2018 / 21:12
1
answer

Use indexes in the WHERE of the UPDATE and DELETE

How optimal is it to create an index for the fields used in the WHERE of the UPDATE and DELETE statements? I have researched on the subject and in general I find split opinions, in general the penalty is mentioned for all the sentences that are...
asked by 16.10.2018 / 01:21
1
answer

What is the advantage of adding indexes in the tables in SQL [closed]

Hello to everyone at StackOverflow !! I hope you are well. Regarding my query, I would appreciate knowing what is the advantage of using Indices-I understand I can have up to 250 per table-in my SQL tables and if there are cases in which they...
asked by 24.01.2018 / 18:04