为了使基于ingres扩展的空间数据库支持多线程空间数据上传和下载,设计实现了一个支持多线程的GSQL解析器。在分析PostGIS解析器的基础上,通过全局变量封装,实现解析器对多线程的支持。为了提高GSQL解析器的效率,提出并实现了可变长内存池管理机制。通过验证,GSQL解析器在多线程上传和下载空间数据时性能优良,而且使用可变长的内存池管理机制大幅度提高了GSQL解析器的时空效率。
To make the extended spatial database based on the ingres database support multi-threaded uploads and downloads of spatial data,the paper designed and implemented a multi-threaded GSQL parser.Based on the analysis of PostGIS parser,it packaged the global variable in the parser to support multi-threading.In order to improve the efficiency of GSQL parser,it proposed and implemented a variable-length memory pool management.Through experimental verification,the GSQL parser performance excellently in a multi-threaded spatial data uploads and downloads,and the variable-length memory pool management system substantially increas the efficiency of the GSQL parser in time and space.