Partitioned Attribute

Hello,

I have a partitioned table.  When I check the meta for it on the table I see the `p attribute but when I pull the table from a partition I dont see it.  

q)meta t

q)

 ctfa

dated

symsp

timet

q) meta (select from t where date=2015.08.06)

q)

©¬ ctfa

dated

syms

timet

Does this mean the attribute is not on the partition?  Will cause slower queries?

The parted attribute is not preserved under an operation on the list, even if the operation preserves the partitioning.

reference:http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes

Individual partitions can have different attributes to the table meta (which comes from the latest partition). See example below:<o:p></o:p>

<o:p> </o:p>

q)`:2015.01.01/t/ set (a:til 5)<o:p></o:p>

`:2015.01.01/t/<o:p></o:p>

q):2015.01.02/t/ set ([]a:p#til 5)<o:p></o:p>

`:2015.01.02/t/<o:p></o:p>

q)\l .<o:p></o:p>

q)meta t<o:p></o:p>

c   | t f a<o:p></o:p>

----| -----<o:p></o:p>

date| d<o:p></o:p>

a   | j   p <o:p></o:p>

q)meta `:2015.01.01/t/<o:p></o:p>

c| t f a<o:p></o:p>

-| -----<o:p></o:p>

a| j<o:p></o:p>

q)meta `:2015.01.02/t/<o:p></o:p>

c| t f a<o:p></o:p>

-| -----<o:p></o:p>

a| j   p <o:p></o:p>

q)meta select from t where date=2015.01.02<o:p></o:p>

c   | t f a<o:p></o:p>

----| -----<o:p></o:p>

date| d<o:p></o:p>

a   | j   p <o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

you can re-apply the attribute using <o:p></o:p>

q)@[`:2015.01.01/t/;`a;`p#]<o:p></o:p>

`:2015.01.01/t/<o:p></o:p>

q)meta `:2015.01.01/t/<o:p></o:p>

c| t f a<o:p></o:p>

-| -----<o:p></o:p>

a| j   p <o:p></o:p>

<o:p> </o:p>

From: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] On Behalf Of RAHUL ASATI
Sent: Friday, August 7, 2015 8:34 AM
To: Kdb+ Personal Developers
Subject: [personal kdb+] Re: Partitioned Attribute<o:p></o:p>

<o:p> </o:p>

The parted attribute is not preserved under an operation on the list, even if the operation preserves the partitioning. <o:p></o:p>

<o:p> </o:p>

reference:http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes<o:p></o:p>

I see, Thanks