js-composedb icon indicating copy to clipboard operation
js-composedb copied to clipboard

feat: expose flag to determine whether a composite is indexed

Open dbcfd opened this issue 2 years ago • 3 comments

dbcfd avatar Nov 15 '23 21:11 dbcfd

As pointed out by Spencer, I don't get what is the purpose for deploying without indexing? That would mean documents can be created but not queried on the node, which seems unlikely to be the wanted user experience?

The desired user behavior is to update their composite with additional indices for querying. That requires create without indexing. However, they may also run deploy, since this is the steps specified in docs, so if they do that, need to do so without indexing.

dbcfd avatar Nov 27 '23 17:11 dbcfd

Just want to add some context here https://forum.ceramic.network/t/devtools-composite-frommodels-does-not-support-filter/1304

qbig avatar Dec 07 '23 13:12 qbig

@PaulLeCam @stbrody The gist is we want to enable 2 workflows:

  1. define models/composite from scratch & deploy and index them (pretty clear)
  2. some other devs discover this model and would like to use it in their own application and as a result want to index these models and create new index definitions/composite (I think 2 is the confusing part)

qbig avatar Dec 07 '23 13:12 qbig