Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizations, a bug, and visibility functions #5

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

kristiank
Copy link

Hello!

I hope I don't create a mess. I tried to keep everything capsulated in separate commits. Please review the commits.

Kristian K added 10 commits March 9, 2013 11:30
…ublications if there are huge amounts of non-public publications; meaning that only public publications are ordered by the sql server instead of all and including non-public publications)
(using code and logic as found elsewhere in Aigaion)
(importing put abstract string in note field and vice versa)
query optimized for huge limit counts (as with paginated pages), e.g limit 10000, 25 actually retrieves 10025 rows, then dumps the first 10000
the logic behind the optimization is to eliminate the amount of data of the rows to be dumped anyways.
TODO: getPubStructForTopic could be optimized the same way; this hasn't been done to preserve upstream compatibility
…ctionality given in libraries/publication_db.php->getVisibleCountForTopic()

if ($userlogin->isAnonymous()) //get only public keywords
{
$Q = $CI->db->query("SELECT ".AIGAION_DB_PREFIX."keywords.* FROM ".AIGAION_DB_PREFIX."keywords, ".AIGAION_DB_PREFIX."publicationkeywordlink, ".AIGAION_DB_PREFIX."publication
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be wrong, what's the purpose of having the publication table here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants