Contact search page

View: New views
4 Messages — Rating Filter:   Alert me  

Contact search page

by Dirk H Bartley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings

I'm writing a contact search page for a php application.  However, the
performance of the search is not even close to as good as for the
opengroupware search.

So from my application doing a search like :

Array ( [0] => Array ( [key] => firstName [value] => Steve [expression]
=> LIKE ) )
  $flags = array();
  $flags['limit'] = 250;
  $detail = 15;
  print_r($criteria);
  $result = $ogo->searchForObjects($entityName, $criteria, $detail,
$flags);


Takes 6-8 seconds.

When in the ogo web application the same search from the advanced search
page only takes a second or so.  Is there a way to quicken my search to
get it to perform like in the ogo browser based application?

Dirk



--
OpenGroupware.org XML-RPC
xmlrpc@...
http://mail.opengroupware.org/mailman/listinfo/xmlrpc

Re: Contact search page

by Adam Tauno Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-11-09 at 09:19 -0500, Dirk H Bartley wrote:

> Greetings
> I'm writing a contact search page for a php application.  However, the
> performance of the search is not even close to as good as for the
> opengroupware search.
> So from my application doing a search like :
> Array ( [0] => Array ( [key] => firstName [value] => Steve [expression]
> => LIKE ) )
>   $flags = array();
>   $flags['limit'] = 250;
>   $detail = 15;
>   print_r($criteria);
>   $result = $ogo->searchForObjects($entityName, $criteria, $detail,
> $flags);
> Takes 6-8 seconds.
> When in the ogo web application the same search from the advanced search
> page only takes a second or so.  Is there a way to quicken my search to
> get it to perform like in the ogo browser based application?

What is your detail level?

--
OpenGroupware.org XML-RPC
xmlrpc@...
http://mail.opengroupware.org/mailman/listinfo/xmlrpc

Re: Contact search page

by Dirk H Bartley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

15

On Mon, 2009-11-09 at 10:12 -0500, Adam Tauno Williams wrote:

> On Mon, 2009-11-09 at 09:19 -0500, Dirk H Bartley wrote:
> > Greetings
> > I'm writing a contact search page for a php application.  However, the
> > performance of the search is not even close to as good as for the
> > opengroupware search.
> > So from my application doing a search like :
> > Array ( [0] => Array ( [key] => firstName [value] => Steve [expression]
> > => LIKE ) )
> >   $flags = array();
> >   $flags['limit'] = 250;
> >   $detail = 15;
> >   print_r($criteria);
> >   $result = $ogo->searchForObjects($entityName, $criteria, $detail,
> > $flags);
> > Takes 6-8 seconds.
> > When in the ogo web application the same search from the advanced search
> > page only takes a second or so.  Is there a way to quicken my search to
> > get it to perform like in the ogo browser based application?
>
> What is your detail level?
>

--
OpenGroupware.org XML-RPC
xmlrpc@...
http://mail.opengroupware.org/mailman/listinfo/xmlrpc

Re: Contact search page

by Adam Tauno Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-11-09 at 10:48 -0500, Dirk H Bartley wrote:
> 15

Hmmm, that shouldn't be that slow.  Including 32 is usually what really
slows people down.

Can you enable Logic profiling and we can see if the time is being
burned in a Logic operation or just in the zOGI protocol bundle.

[COILS will support taking over searchForObjects calls very soon; and
that will be faster in any case.  COILS is a Python re-implmentation of
OpenGroupware, it is 100% parallel installable.]

> On Mon, 2009-11-09 at 10:12 -0500, Adam Tauno Williams wrote:
> > On Mon, 2009-11-09 at 09:19 -0500, Dirk H Bartley wrote:
> > > Greetings
> > > I'm writing a contact search page for a php application.  However, the
> > > performance of the search is not even close to as good as for the
> > > opengroupware search.
> > > So from my application doing a search like :
> > > Array ( [0] => Array ( [key] => firstName [value] => Steve [expression]
> > > => LIKE ) )
> > >   $flags = array();
> > >   $flags['limit'] = 250;
> > >   $detail = 15;
> > >   print_r($criteria);
> > >   $result = $ogo->searchForObjects($entityName, $criteria, $detail,
> > > $flags);
> > > Takes 6-8 seconds.
> > > When in the ogo web application the same search from the advanced search
> > > page only takes a second or so.  Is there a way to quicken my search to
> > > get it to perform like in the ogo browser based application?
> > What is your detail level?

--
OpenGroupware.org XML-RPC
xmlrpc@...
http://mail.opengroupware.org/mailman/listinfo/xmlrpc