64kb limit on @dbcolumn and while loop on serverside js

I am trying to do a type ahead for a field that has more than 64kb, so i cant use a @dbcolumn.

I instead have tried using this with error 500, which we all know means nothing !!!

here is the serverside script i am trying to use

db1 = session.getDatabase(“notes1”, “applications\vendors.nsf”)

view1 = db1.getView(‘picklist’)

doc1 = view1.getFirstDocument()

var int1 = view1.getEntryCount()

var i = 0

while(i <= int1){

value1 = @Text(doc1.getItemValue(‘name’)) + "! " + @Text(value1);

doc1 = view1.getNextDocument(doc1);

i=i+1

}

@Explode(value1, “!”)

it all works when i do not use the loop and just do three documents, i even tried limiting the loop to 25 still not go, any ideas if while statements work on the serverside js?