It all depends. I mean, if you have 20 million URLs averaging 40 characters
each, that's 80 MB, not a big deal at all, but if you have 20 billion URLs
that would take up 80 GB, which might be a big deal. But if you shard those
20 billion documents into 10 shards, 8 GB may or may not be a big deal, all
depending on your hardware and expectations, not to mention all the rest of
the fields in your documents.
Sure, a string longer than 4 characters takes up more space than an int. Is
that what you are asking??
But, generally, the ID should be a string - there are plenty of places in
Solr which only support string IDs.
-- Jack Krupansky
-----Original Message-----
From: Zahoor Mohamed
Sent: Friday, October 04, 2013 4:51 AM
To: solr-user@lucene.apache.org
Subject: Size of ID field
Hi
Does the size of ID field matter .. in terms of memory usage...and query
performance...
i.e. will Solr use more memory if you use a URL string as ID field instead
of a int value?
./zahoor