[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [mylyn-integrators] Loading large number of tickets in a connector
- From: Steffen Pingel <steffen.pingel@xxxxxxxxxxx>
- Date: Sun, 3 Jan 2010 13:32:03 -0800
- Delivered-to: email@example.com
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.
On Fri, Dec 18, 2009 at 6:55 AM, Sebi Trandafir <mamaremere@xxxxxxxxx> wrote:
> 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.
> 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
> Any directions would be highly appreciated... thanks.
> And... congrats on the 3.3.1 release :)
> the only thing that takes courage in this life is standing still...
> mylyn-integrators mailing list
Senior Developer, http://tasktop.com