in reply to Re^4: Architecture design for full stack development.
in thread Architecture design for full stack development.
CLUSTER [1] rewrites a table in the order of an index (to wit, the index you pass to the CLUSTER command). Access of singular values does not change; but access of values that are now (after CLUSTER) 'near' each other can become faster (because there is a higher chance they are already read). It has to do with /physical/ nearness (or proximity) of the table data, not of the values.
At least, that is my theory :)
Please don't ask me to submit test results -- I have a system to build!
Fair enough :) But I wouldn't undertake any work on the basis of your theory - I don't think it is valid.
I'll try to devise a test myself, and see if one of our theories can be falsified.
[1] CLUSTER command (PostgreSQL docs)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Architecture design for full stack development.
by anonymized user 468275 (Curate) on Jun 23, 2017 at 18:15 UTC | |
by erix (Prior) on Jun 23, 2017 at 19:34 UTC | |
by anonymized user 468275 (Curate) on Jun 25, 2017 at 05:15 UTC | |
by erix (Prior) on Jun 25, 2017 at 05:47 UTC | |
by anonymized user 468275 (Curate) on Jun 25, 2017 at 06:05 UTC | |
|