@moxious,
just to save your time:
- 4.0 branch is not good with N1QL. There are too many significant changes between 4.0/4.1 and 4.5, so if you use N1QL with 4.0 CE, you better try to build 4.5 CE from source.
- About fragmentation: GSI: different sporadic bugs + fragmentation up to 98%
- And finally, if you still decided to stay with 4.0 + N1QL, then you should know about this: Loading...
Most of reply-posters here are devs/devadvs and they are really trying to help you, but they are tied with their positions while answering “complex” questions.