We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

DB fetch data params? | Forum

Topic location: Forum home » Support » General Questions
Marcus
Marcus Jun 3 '19

Hi folks whats the different between fetching data like this:


left join `" . BOL_UserDao::getInstance()->getTableName() . "` u on


vs


left join `ow_base_user` u on




Senior Developer Leader
Senior Developer Jun 3 '19
The table's prefix is "ow_", if admin did install Oxwall changing the prefix for the tables to something like "anotherprefix_", your query will be wrong. 


That's why you need to get the right table name using this method 

BOL_UserDao::getInstance()->getTableName()


Senior Developer.

Marcus
Marcus Jun 3 '19
OK thanks so this has nothing to do with making in fast or more efficient.