pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-php@postgresql.org
Subject: Re: large resultset
Date: 15 Jun 2010 12:21:20 GMT
Message-ID: <hv7r80$ogq$3@reversiblemaps.ath.cx> (raw)
References: <AANLkTinXSz6PsoTyPhryAHsN3V-M0v-m3sTCLTJSJttO@mail.gmail.com>
	<AANLkTimP7qSASY3dRA09p6e35CzRLo8pOyZ6J5_5Bisx@mail.gmail.com>
	<8f468dc246fb6075f2a1f46b09f71a6d@xs4all.nl>
	<AANLkTimJPh6X78KS0rflYhLcldMtrIq8S4HfMVMKUJfS@mail.gmail.com>
	<AANLkTinfQIZXAcJE6GBD6P1AsOVnli9UuZDMl7BvbeHl@mail.gmail.com>
	<1276598244.3820.16204.camel@happy.home.mcmillan.net.nz>

On 2010-06-15, Andrew McMillan <andrew@morphoss.com> wrote:

> Fundamentally sending 2million of anything can get problematic pretty
> darn quickly, unless the 'thing' is less than 100 bytes.
>
> My personal favourite would be to write a record somewhere saying 'so
> and so wants these 2 million records', and give the user a URL where
> they can fetch them from.  Or e-mail them to the user, or... just about
> anything, except try and generate them in-line with the page, in a
> reasonable time for their browser to not give up, or their proxy to not
> give up, or their ISP's transparent proxy to not give up.

email often fails for sizes over 10Mb

> Why do they want 2 million record anyway?  2 million of what?  Will
> another user drop by 10 seconds later and also want 2 million records?
> The same 2 million?  Why does the user want 2 million records?  Is there
> something that can be done to the 2 million records to make them a
> smaller but more useful set of information?

/Nobody/ wants a web page with 2 million lines on it,
(scrolling gets tricky when each pixel is 2000 lines of data, plus
most browsers aren't designed to handle it well)


still if it's served with "Content-Disposition: Attachment"
they'll get offered it for download instead.
(unless they use IE and you use cookies and SSL in which case it
doesn't work)



view thread (14+ messages)  latest in thread

Message-ID: <hv7r80$ogq$3@reversiblemaps.ath.cx>
Permalink:  ../hv7r80$ogq$3@reversiblemaps.ath.cx/
Also on:    postgresql.org/message-id/hv7r80$ogq$3@reversiblemaps.ath.cx

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jasen@xnet.co.nz
  Subject: Re: large resultset
  In-Reply-To: <hv7r80$ogq$3@reversiblemaps.ath.cx>
  References: <AANLkTinXSz6PsoTyPhryAHsN3V-M0v-m3sTCLTJSJttO@mail.gmail.com> <AANLkTimP7qSASY3dRA09p6e35CzRLo8pOyZ6J5_5Bisx@mail.gmail.com> <8f468dc246fb6075f2a1f46b09f71a6d@xs4all.nl> <AANLkTimJPh6X78KS0rflYhLcldMtrIq8S4HfMVMKUJfS@mail.gmail.com> <AANLkTinfQIZXAcJE6GBD6P1AsOVnli9UuZDMl7BvbeHl@mail.gmail.com> <1276598244.3820.16204.camel@happy.home.mcmillan.net.nz> <hv7r80$ogq$3@reversiblemaps.ath.cx>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox