#611 new
shawn (at vegantech)

csv upload performance

Reported by shawn (at vegantech) | March 14th, 2011 @ 06:28 AM | in Evaluate to see if applicable.

for example student groups
add mapped columns that are indexed integers and only do the expensive join once.

insert into groups_students

  (student_id,group_id)
  select u.id , g.id from student_groups_1001893421_importer tug inner join
  students u use index district_id on u.district_student_id = tug.district_student_id
  inner join groups g
  on tug.district_group_id = g.district_group_id
  and u.district_id = 1001893421
  where not exists (
  select 1 from groups_students gs
    where gs.group_id = g.id and gs.student_id = u.id)
  group by u.id,g.id

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Student Intervention Monitoring System

Shared Ticket Bins

People watching this ticket

Pages