Top "Indexing" questions

Indexing data structures is a general technique to improve the speed of data lookups.

PHP - Get array value with a numeric index

I have an array like: $array = array('foo' => 'bar', 33 => 'bin', 'lorem' => 'ipsum'); echo native_function($array, 0); // bar …

php arrays get indexing numeric
FORCE INDEX mySQL ...where do I put it?

I have the following mySQL query that works perfectly fine. Except that I need to add a "FORCE INDEX" and …

mysql indexing greatest-n-per-group
Convert ArrayList into 2D array containing varying lengths of arrays

So I have: ArrayList<ArrayList<String>> Which contains an x number of ArrayLists which contain another …

java multidimensional-array arraylist indexing varying
Best way to handle list.index(might-not-exist) in python?

I have code which looks something like this: thing_index = thing_list.index(thing) otherfunction(thing_list, thing_index) ok …

python list find indexing
sql primary key and index

Say I have an ID row (int) in a database set as the primary key. If I query off the …

sql sql-server tsql indexing primary-key
Xcode stuck on Indexing

A project I've been working for 2 months stopped working for no reason because Xcode got stucked on "Indexing". I can't …

xcode indexing freeze
Is it possible to add index to a temp table? And what's the difference between create #t and declare @t

I need to do a very complex query. At one point, this query must have a join to a view …

sql tsql indexing temp-tables
How to index an element of a list object in R

I'm doing the following in order to import some txt tables and keep them as list: # set working directory - …

r list indexing lapply read.table
How to create a unique index on a NULL column?

I am using SQL Server 2005. I want to constrain the values in a column to be unique, while allowing NULLS. …

sql sql-server indexing constraints unique
How do I check if an index exists on a table field in MySQL?

I've needed to Google this a couple times, so I'm sharing my Q/A.

mysql indexing