mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 12:41:30 +00:00
* Create Alternate BazaarSearch Routine Establishes an alterative to the in memory bazaar search routine and instead uses a db query process. For large Bazaars (with 1000s of items) this is much faster. Testing with 30k items produced a search in ~1sec version 2.7sec for the in memory version. Default is false - Do not use this version. * Indexes for trader and items * Set query-based bazaar search the default * Update database_update_manifest.cpp --------- Co-authored-by: Akkadius <akkadius1@gmail.com>
17 lines
380 B
C++
17 lines
380 B
C++
#ifndef EQEMU_BAZAAR_H
|
|
#define EQEMU_BAZAAR_H
|
|
|
|
#include <vector>
|
|
#include "shareddb.h"
|
|
#include "../../common/item_instance.h"
|
|
|
|
class Bazaar {
|
|
public:
|
|
static std::vector<BazaarSearchResultsFromDB_Struct>
|
|
GetSearchResults(Database &content_db, Database &db, BazaarSearchCriteria_Struct search, unsigned int char_zone_id, int char_zone_instance_id);
|
|
|
|
};
|
|
|
|
|
|
#endif //EQEMU_BAZAAR_H
|