logo

New Response

« Return to the main article

You are replying to:

  1. was thinking you could add a hidden column to a view and use @DocNumber. Then use @Subset(@DBColumn("";"";;view; colnum);-1);

    And this would give you the number of docs. Performance might be bad on large views, though, and you might hit the 64k limit.

    Another idea is to keep that @DocNumber column and use script to get db.getlastdocument and pull the @DocNumber column value from the returned doc. Curious how the performance of this would be versus the document collection.count.

    Thanks Jake for your continued writing. I enjoy the site very much-

    Seth Rhode Island, USA

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: