unlimited search - seems to freeze - no possibility to interrupt

Bug #784181 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP sa GTK client R&D

Bug Description

if unlimited is set and clear is clicked ALL records are returned. If the number is big the computer freezes for a while.

it should be possible to interrupt.

this happens always if "radio" kind buttons are released before the next is clicked. examples sales "Quotations" "Sales"
to avoid this first both buttons must be clicked and then one unchecked.
not very comfortable and intuitive

IMHO a feasable solution is already implemented in Koo - sets of some 80 records are additionally loaded on demand (scrolling)

Revision history for this message
Ferdinand (office-chricar) wrote :

BTW there is a considerable time during "loading" all the data as well as for "unloading" both using 100% CPU (of one processor)

Revision history for this message
xrg (xrg) wrote : Re: [Bug 784181] [NEW] unlimited search - seems to freeze - no possibility to interrupt

On Tuesday 17 May 2011, you wrote:
> Public bug reported:
>
> if unlimited is set and clear is clicked ALL records are returned. If
> the number is big the computer freezes for a while.
>
> it should be possible to interrupt.

I've seen that again.

Obviously, what you are trying to do is to return several thousands of records
in one RPC call. (gtk client does a read([< k ids>]) there)

Apart from the SQL load and pre-processing of that data, one issue is the
packing of values into xml [1][2]. That is slow, and needs a lot of memory.
Then, transferring the data will take some time, too.
Then, parsing the xml inside the client (Gtk, I assume, ?) needs time, too,
and putting all these records inside the model objects is memory+time hungry,
also.

Koo works around that, by fragmenting the dataset. Which is enough.

However, while working with WebDAV, I have seen that such protocols have a
method of _streaming_ big piles of data down the net, rather than using one
chunk. That would be a best-practice solution to copy into our protocols, too.

A temporary workaround for the gtk client, /feasible today/, would be to
detect that a read() has many ids, and break it into several calls. In the
meantime, it could also update a progress bar.

[1] really, are we talking about xml-rpc, or net-rpc?
[2] just saw your second mail, that matches my hypothesis

Revision history for this message
Ferdinand (office-chricar) wrote :

I am talking about net-rpc

Revision history for this message
xrg (xrg) wrote : Re: [Bug 784181] Re: unlimited search - seems to freeze - no possibility to interrupt

On Thursday 09 June 2011, you wrote:
> I am talking about net-rpc

Well, you should avoid using that protocol, in an unrelated note..

--
Say NO to spam and viruses. Stop using Microsoft Windows!

Revision history for this message
Ferdinand (office-chricar) wrote :

Hmm,
I am a bit astonished
* net-rpc it's faster but not reliable ?
* we also should not use db-backup for larger databases because big files can't transferred.
....

Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.