On 28/07/12 09:46 +0530, Sharoon Thomas wrote:
> On Jul 27, 2012, at 4:15 PM, Cédric Krier <[email protected]> wrote:
> 
> > On 27/07/12 16:14 +0530, Teagarden wrote:
> >> On 27-Jul-2012, at 3:01 PM, Cédric Krier <[email protected]> wrote:
> >>>> and it has a generic API over which we write multiple reports in 
> >>>> different modules. I will try to extract the report generation part 
> >>>> alone and put that out 
> >>>> as a module today.
> >>> 
> >>> Why did you not use the standard CSV export of Tryton?
> >> 
> >> 1. Loads everything into memory as list of dict.
> > 
> > I don't understand.
> 
> ok, lets say that the report requires a million records, if you directly use 
> the export_data
> method, its going to build a huge list of list.

In your code, you also have to put all the file in memory.

> In addition __export_row method is not
> very efficient in building the data either because of its generic nature.

I don't see why?

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpSWj4BOiqtz.pgp
Description: PGP signature

Reply via email to