View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
03446Bug reportsSurvey participants (Tokens)public2009-08-03 09:22
Reporteruser4115Assigned Toc_schmitz  
PrioritynormalSeveritytweak 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03446: Create indexes on tokens
Description

Indexes should be ceated on «runtime» token tables -- don't know how you're calling them. When importing tokens into large token tables, the more tokens in the table, the slower the import due to verification of duplicates (file admin/tokens.php).

Additional Information

Currently I'm using LimeSurvey 1.85 for a large scale survey, i.e. more than 20,000 tokens. I've had to import tokens in batches using CSV files. The more tokens in the database, the slower the import.

I've fixed the problem temporarily by creating an index in the token table (a table lime_tokens_nnnnn that was created dynamically) with fields 'email', 'firstname' and 'lastname'. Now it's much faster to import and find duplicates. However I'd have to create these indexes manually each time a token table is created.

The instruction is as follows:

"CREATE UNIQUE INDEX limetokens<nnnnn>_names_idx ON limetokens<nnnnn>( email(120), firstname, lastname );"

It was successfully tested and checked against a MySQL database.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)7121
I will donate to the project if issue is resolved
Browser
Database type & version5.0.51a-3ubuntu5.4
Server OS (if known)Ubuntu 8.04.1
Webserver software & version (if known)apache-2.2.8-1ubuntu0.8
PHP Versionphp5-5.2.4-2ubuntu5.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

user372

2009-07-07 23:23

  ~08787

@ c_schmitz: what do you think about it? is it possible to have these indices also with MSSQL and Postgres,...

Issue History

Date Modified Username Field Change
2009-07-07 15:43 user4115 New Issue
2009-07-07 15:43 user4115 Status new => assigned
2009-07-07 15:43 user4115 Assigned To => user372
2009-07-07 15:43 user4115 Build Number => 7121
2009-07-07 15:43 user4115 Database & DB-Version => 5.0.51a-3ubuntu5.4
2009-07-07 15:43 user4115 Operating System (Server) => Ubuntu 8.04.1
2009-07-07 15:43 user4115 Webserver => apache-2.2.8-1ubuntu0.8
2009-07-07 15:43 user4115 PHP Version => php5-5.2.4-2ubuntu5.6
2009-07-07 23:23 user372 Note Added: 08787
2009-07-07 23:23 user372 Assigned To user372 => c_schmitz
2009-07-29 13:07 c_schmitz Status assigned => resolved
2009-07-29 13:07 c_schmitz Fixed in Version => 1.85+
2009-07-29 13:07 c_schmitz Resolution open => fixed
2009-08-03 09:22 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)