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

Nina Wu nina at intersect.org.au
Tue May 20 08:38:02 UTC 2014


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140520/9694abe9/attachment-0003.html>


More information about the ckan-dev mailing list