Integer fields should be saved as integer rather than sint by default I think, since we are not usually doing range queries, and since integer seems to have better performance.

http://www.nabble.com/Help-optimizing-td17037362.html#a17095631

Also, we should prefix cck field with an additioanl stirng, so we avoid name-space collisions with other modules that want to add dynamic fields.

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new2.73 KB
pwolanin’s picture

discussing w/ Robert and Jacob - we could think about shortening the dynamic field patterns to be like isf_* rather than isfield*, but maybe the effort is not worth it. The only reason would be if we were hitting field-name size limits or query URL size limits.

Jacob says that Jetty supports 4096 chars in a URL, so it seems unlikely that we'd get close to this - even 4x facets that were 50 chars each...

In fact Jacob says he'd almost rather see us expand the names to make for better DX - e.g. integer_sf* or even integer_single_f*

pwolanin’s picture

StatusFileSize
new7.17 KB

better patch - does some clean up around the get_cck_fields functionality.

pwolanin’s picture

StatusFileSize
new7.22 KB

slightly better- add a bool cast.

pwolanin’s picture

StatusFileSize
new7.22 KB

nodeaccess* -> stored=="false" since this is only ever being used to filter.

pwolanin’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Needs review » Patch (to be ported)

committed to 6.x

aufumy’s picture

StatusFileSize
new654 bytes

Upon indexing, $node->$key looking for 'cck_field_test' instead of 'field_test'. Added ltrim($key, 'cck_')

pwolanin’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Needs review
StatusFileSize
new1.8 KB

ah, good point - though maybe we should just construct this better - like this?

aufumy’s picture

Status: Needs review » Reviewed & tested by the community

It works! Deleted index, ran cron and tested fine.

Thanks
Audrey

pwolanin’s picture

Status: Reviewed & tested by the community » Fixed

committed to 6.x

pwolanin’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Fixed » Patch (to be ported)

at some point all these changes need to be backported.

pwolanin’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Closed (fixed)