[ckan-dev] CKAN Postgres database - some resources have null Size value

Nigel Babu nigel.babu at okfn.org
Tue May 20 09:40:16 UTC 2014


Hi Nina,

I don't think it does, but this wouldn't be too hard to add for 2.3. Could you
open an issue at https://github.com/ckan/ckan/issues?

On Tue, May 20, 2014 at 06:38:02PM +1000, Nina Wu wrote:
> Oh ok. Does this change in ckan 2.2?
>
> On Tuesday, May 20, 2014, Nigel Babu <nigel.babu at okfn.org> wrote:
> > Hi Nina,
> >
> > In CKAN 2.0, CKAN itself did not add the size to the resource table. It
> was
> > added by extensions. The files that you see the sizes are *probably* the
> ones
> > that datastorer extension has been run against.
> >
> > On Tue, May 20, 2014 at 03:26:26PM +1000, Nina Wu wrote:
> >> These resources are the data files that users upload into CKAN (stored on
> >> the CKAN filestore), like documents, images etc. This instance of CKAN is
> >> version 2.0.
> >>
> >>
> >> On Tue, May 20, 2014 at 3:13 PM, Nigel Babu <nigel.babu at okfn.org> wrote:
> >>
> >> > Are these resources a link to an external file or uploaded to the ckan
> >> > filestore? What version of CKAN are you using?
> >> >
> >> > Nigel Babu
> >> > Developer, Open Knowledge
> >> >
> >> >
> >> > On 20 May 2014 10:17, Nina Wu <nina at intersect.org.au> wrote:
> >> >
> >> >>  Hi all
> >> >>
> >> >> I'm creating a script to get the total size of resources per
> >> >> group/organization. I have noticed that some resources (in the
> Resource
> >> >> table in the Postgres database) do not have a Size value, even though
> I can
> >> >> successfully download a 2MB file. Anyone know why?
> >> >>
> >> >> Thanks
> >> >>
> >> >> _______________________________________________
> >> >> ckan-dev mailing list
> >> >> ckan-dev at lists.okfn.org
> >> >> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >> >> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >> >>
> >> >>
> >> >
> >> > _______________________________________________
> >> > ckan-dev mailing list
> >> > ckan-dev at lists.okfn.org
> >> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> >> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >> >
> >> >
> >
> >> _______________________________________________
> >> ckan-dev mailing list
> >> ckan-dev at lists.okfn.org
> >> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> >
> > --
> > Nigel Babu
> > Developer, Open Knowledge
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >

> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev


--
Nigel Babu
Developer, Open Knowledge



More information about the ckan-dev mailing list