You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although this could feasibly happen on any indexed field, when running a harvest against the NDBC SOS service, I ran into an exception of:
<ows:Exception exceptionCode="NoApplicableCode" locator="source">
<ows:ExceptionText>Harvest (insert) failed: ERROR: index row size
3956
exceeds maximum 2712 for index "ix_records_operateson"
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text
indexing.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
My source xml to direct the CSW to harvest from the SOS:
The "operateson" field was extremely large from the SOS server, it was an entry of all the stations being served out from the service.
Tom suggested commenting out line 678 in metadata.py as a temporary workaround.
The text was updated successfully, but these errors were encountered:
Another tangent out of memory issue I've just run into is when there are records in the pycsw repository, I re-ran the harvesting at the same endpoint and the pycsw server threw a MemoryException.
File "/usr/local/src/python/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "csw_staging.wsgi", line 100, in application
contents = csw.dispatch_wsgi()
File "/home/madrona/src/pycsw/pycsw/server.py", line 391, in dispatch_wsgi
return self.dispatch()
File "/home/madrona/src/pycsw/pycsw/server.py", line 550, in dispatch
self.response = self.harvest()
File "/home/madrona/src/pycsw/pycsw/server.py", line 1782, in harvest
results = self.repository.query_source(content)
File "/home/madrona/src/pycsw/pycsw/repository.py", line 239, in query_source
return self._get_repo_filter(query).all()
I was using "free -m" on the command line and could see the memory being used until it could no longer allocate any.
Although this could feasibly happen on any indexed field, when running a harvest against the NDBC SOS service, I ran into an exception of:
My source xml to direct the CSW to harvest from the SOS:
The "operateson" field was extremely large from the SOS server, it was an entry of all the stations being served out from the service.
Tom suggested commenting out line 678 in metadata.py as a temporary workaround.
The text was updated successfully, but these errors were encountered: