rewriteIds used when using a fetch plan