[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] Loading large number of tickets in a connector

Most connectors download task details in a two phase process.
You can get a sense of how that works if you open the progress view
and create a new Trac or Bugzilla query. You will notice how results
appear quickly in the task list but the job will continue to run until
all details have been retrieved and copied to the offline store.

In the first pass the tasks framework invokes
AbstractRepositoryConnector.performQuery(). A connector may return
task data objects as partial through invoking
taskData.setPartial(true) and only provide a minimal set of
attributes. It will largely depend on the remote interface of your
repository what that includes. A good set of attributes is everything
that's visible in the task list, i.e. id, summary, priority, severity,
last modification date and completion state but it's most important
that queries can run quickly. Trac for instance only returns the ids
of tasks that match a particular query.

In the second pass, after the task list has been updated based on the
information from the fist pass, the full task data for each new or
changed task is retrieved through the invocation of
AbstractRepositoryConnector.getTaskData(). Connectors are expected to
return the full task details here.

Steffen


On Fri, Dec 18, 2009 at 6:55 AM, Sebi Trandafir <mamaremere@xxxxxxxxx> wrote:
> Hello,
>
> It's been some time since I started integrating a Mylyn connector. I've
> found valuable information in these mail archives, and googling around, and
> reading thru the Trac Connector's code.
>
> However, I am now in the phase of making this connector perform better. I
> need "better", because when it's dealing with large ammounts of tickets to
> import, well, it just takes a lot of time.
>
> Question:
>
> is there a way to tell the connector to only load certain attributes when
> performing the query, and only load the full ticket when I double click on
> it?
>
> Any directions would be highly appreciated... thanks.
>
> And... congrats on the 3.3.1 release :)
>
> Sebz
>
>
>
>
> the only thing that takes courage in this life is standing still...
>
>
> _______________________________________________
> mylyn-integrators mailing list
> mylyn-integrators@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
>
>



-- 
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com