Commit Graph

72 Commits

Author SHA1 Message Date
David Anderson bcd16e9bf6 Make DB work with MySQL 8.0
Change all tables to InnoDB.
It now supports fulltext indices.
2020-08-17 20:34:52 -07:00
Shawn Kwang 096fde11cf db: explicit add of delete restrict 2018-10-25 10:19:43 -05:00
Shawn Kwang 4531d5644c db: Update index for consent table 2018-09-13 10:08:05 -05:00
Shawn Kwang fd3fb65047 fixed semicolons should be colons 2018-09-12 15:43:13 -05:00
Shawn Kwang cbce74df7c Merge branch 'master' into sak-useroptin-dbaddconsent
Prepare for merging this development branch into master.

Conflicts:
	html/ops/db_update.php
2018-09-12 11:48:25 -05:00
Christian Beer 3d91ec6c8f DB: move index from schema.sql to constraints.sql
As noted in the comment this is how it should be.

Signed-off-by: Shawn Kwang <kwangs@uwm.edu>
2018-09-12 11:43:53 -05:00
Shawn Kwang c4c2ae69ba Added additional index to consent table as well as foreign_key index. 2018-09-12 11:32:40 -05:00
Kevin Reed 436409a40b server: Replace host index on userid with one based on userid and host_cpid 2018-09-07 10:10:03 -05:00
Kevin Reed 77f9078398 server - add indexes to host in order to make scheduler requests quick
for users with large number of devices (i.e at least 50k)
2018-08-23 15:10:48 -05:00
Shawn Kwang 431d8d6542 db: Modified database definitions for consent_type table.
Consent_type table uses id, and consent table now refers to consent_type_id instead of name.
Additionally, added index of consent_time to consent table.
2018-06-15 14:50:48 -05:00
Shawn Kwang cc6efacb8d db: Reorganize database changes, and add indices to new tables.
Added indices to consent and consent_type tables.
Moved initial content of consent_type table to new SQL file: content.sql
Modified database.py to insert new content.sql into database. In python autocommit is turned off by default, thus a manualy commit() was added.
Updated db_update.php to match changes in db/.
2018-06-12 12:08:26 -05:00
Kevin Reed 7ce2370160 db: change index names to not be shortened 2018-05-17 08:46:37 -05:00
Kevin Reed 328a901ff3 db: add indexes in support delete account 2018-05-16 15:38:34 -05:00
Keith Uplinger fecbfa3bd2 Modified the table definition for user table to have email_addr_change_time to be indexed per davids suggestion. 2018-05-10 09:34:39 -05:00
David Anderson 6485e50647 DB: add indices to credit_user and credit_team
Should make queries for top items fast.
2017-03-17 11:45:45 -07:00
David Anderson 61710233cd Project creation: fix a couple of bugs 2017-03-06 11:35:00 -08:00
David Anderson 2d0a6cc10f web: add badge stuff to db_update script 2013-12-22 20:53:10 -08:00
David Anderson 65b5ab5184 server/web: preliminary support for badges
- DB: add tables for badges and badge/user and badge/team associations
- add script that defines 3 RAC-based badges and assigns them
- add images for these badges
- add admin page for creating/editing badges
- show badges on user page
not done:
- figure out how to send badges to client
- display badges somewhere in the GUIs
- export badges in db_dump
- enable badges by default for new projects
2013-12-05 10:14:26 -08:00
David Anderson 2a73dc0e01 - remote file management stuff for Condor 2013-03-05 14:05:04 +01:00
David Anderson 6205ffed08 - scheduler: add extra check for not sending homogeneous app version
jobs to anonymous platform clients
- remote job submission: add DB table for keeping track of files
2013-03-04 15:16:58 +01:00
David Anderson 130d6ed4f0 - server: revamp the "assigned job" mechanism.
This now supports two main use cases:
    1) there's a job that you want to run once on all hosts,
        present and future
        (or all hosts belonging to a user, or to a team).
        The job is never transitioned, validated, or assimilated.
    2) There's a normal job for which you want to use only
        hosts belonging to a specific user (e.g. cluster or cloud hosts).
        This restriction can be made either when the job is created,
        or on the fly,
        e.g. as part of a scheme for accelerating batch completion.
        For the latter purposes we now provide a function
            restrict_wu_to_user(DB_WORKUNIT&, int userid);

        The job goes through the standard
        transitioner/validator/assimilator path.

    These cases are enabled by config flags
        <enable_assignment_multi/>
        <enable_assignment/>
    respectively.

    Assignment of type 2) are no longer stored in shared mem,
    so there is no limit on their number.

    There is no longer a rule that assigned job names must contain "asgn".

    NOTE: this requires a database update.


svn path=/trunk/boinc/; revision=25169
2012-01-30 22:39:13 +00:00
David Anderson fb851311e0 - server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew

    Projects will need to update DB and recompile all back-end programs.

    Summary:
    - new way of computing credit
    - "reliable host" mechanism is per app version
    - "host punishment" mechanism is per app version
    - adjustment of wu.rsc_fpops_est provides the
        equivalent of per app version DCF
    - max jobs in progress is now per app
    - max jobs per RPC is now per app

    TODO:
    - reliable mechanism:
        - populate and use host_app_version.error_rate
        - populate host_app_version.turnaround
    - host punishment:
        - populate host_app_version.max_jobs_per_day
        - populate host_app_version.n_jobs_today
        - use app.max_jobs_per_day_init
    - job limits:
        - use app.max_jobs_in_progress, max_gpu_jobs_in_progress
        - use app.max_jobs_per_rpc
    - adjust wu.rsc_fpops_est
    - remove old credit stuff
        fpops_cumulative, credit_multiplier
        credit computation in scheduler

- AVERAGE class: use the Knuth algorithm (Wikipedia)


svn path=/trunk/boinc/; revision=21021
2010-03-29 22:28:20 +00:00
David Anderson 815b8fc043 Various preparation for handling multithreaded apps
and apps that use coprocessors.
There now can be several app_versions for the same
(app, platform, version_num) combination.
This changes a number of things.

- Added app_version.plan_class field to DB
- update_versions now looks for a :plan-class in the
    file or directory name, and puts it in the app_version's DB record
- Change uniqueness constraint to include plan_class
- Feeder: the feeder was putting non-deprecated app_versions
    in shared mem, and leaving it to the scheduler to
    find the latest version for a given platform.
    This is dumb.
    Instead, for each app/platform pair the feeder now
    finds the highest version number of a non-deprecated app version,
    and enumerates all non-deprecated app_versions with that
    app/platform/version
- Scheduler: add a BEST_APP_VERSION data structure that keeps track,
    for each app, what the best app_version is for this host.
    This saves the work of recomputing it for each job.

svn path=/trunk/boinc/; revision=14906
2008-03-13 22:57:24 +00:00
David Anderson f183b6f47f - web: add general-purpose notification mechanism.
Users can choose whether to get 1 email per notification,
    a daily "digest" email, or no email.
    (All notifications are shown on the Account page).
    Currently used for:
    - Friend requests and confirmations
    - Posts to subscribed threads
    - Private messages

    NOTE: To implement the "daily digest" feature, projects must add
    a periodic task for html/ops/notify.php to config.xml
- web: have project_footer() generate links for
    Account Page and Message Boards as well as Home
    NOTE: projects that want this change
    will have to modify their own project.inc.

svn path=/trunk/boinc/; revision=14447
2007-12-30 22:02:16 +00:00
David Anderson 13baee4302 - user web: add "friend" and "notification" features
- user web: code cleanup in Profile area
- GUI RPC: add missing "/" in auth2 RPC

svn path=/trunk/boinc/; revision=14394
2007-12-18 20:28:08 +00:00
David Anderson 4a81532043 - DB: add fulltext index on team.name
- user web: improve "team search" function,
    and get rid of the superceded "search by name" function
- user web: don't show team founder link to initiate transfer
- user web: show team types
- user web: fix "top teams by type" function
- client: tread NOT_FOUND error on file upload as transient;
    it means the project is missing its file_upload_handler

svn path=/trunk/boinc/; revision=14272
2007-11-20 22:58:14 +00:00
David Anderson 9970e2c71b - user web: bug fixes
svn path=/trunk/boinc/; revision=14204
2007-11-14 21:55:05 +00:00
David Anderson 87c0f98b10 - user web: a private message is considered "read" the
first time it's shown.
        No explicit "mark as read" action needed.
        Also, no confirmation for message delete.

svn path=/trunk/boinc/; revision=14077
2007-11-03 04:26:47 +00:00
David Anderson 7302f02544 - user web: added new framework for DB access from PHP.
Here's how things should eventually be:
    - inc/db_conn.inc defines DbConn, a PHP class representing
        a connection to a database with
        various generic operations (update, insert etc.).
        DbConn prepends the DB name to table names,
        so you don't have to select a DB;
        this means you can access multiple databases
        (e.g. BOINC and Bossa) and use persistent connections.
        ALL MYSQL-SPECIFIC CODE WILL EVENTUALLY BE HERE.
    - inc/boinc_db.inc defines classes BoincUser, BoincTeam etc.,
        representing the various BOINC DB tables.
        All access to the DB should use these classes.

    When you use this framework, no initialization calls are needed.
    db.inc is deprecated and should eventually be removed.

    I changed get_logged_in_user()
    and all team-related code to use this framework.
- user web: show team founder link to "management functions"
    even if they're not currently a member;
    allow team founder to perform all operations even if not a member.
- turned on E_ALL error checking,
    and fixed a bunch of warnings
    and a couple of bugs ($team, not team)

- database: update schema/constraints for team fulltext search
- user web: forgot to change Serbia and Montenegro to Serbia

svn path=/trunk/boinc/; revision=13968
2007-10-26 21:14:35 +00:00
David Anderson 14bc500cab - user web: added mechanism for recording team membership changes.
These are stored in a new DB table, "team_delta".
    The team founder can view the history in HTML or XML
    (links on Management Functions page)

svn path=/trunk/boinc/; revision=13231
2007-07-27 18:30:10 +00:00
David Anderson 3e340136da - feeder: simplified DB query
- make_project: remove space after URL in schedulers.txt

svn path=/trunk/boinc/; revision=13127
2007-07-09 20:09:49 +00:00
Matt Lebofsky 136ce49b84 svn path=/trunk/boinc/; revision=12536 2007-05-02 23:17:52 +00:00
Matt Lebofsky 846ec9fbb0 svn path=/trunk/boinc/; revision=12532 2007-05-02 18:51:51 +00:00
Rytis Slatkevičius ccff6971ca Big team change to allow founder transfer when he's no longer available
svn path=/trunk/boinc/; revision=11367
2006-10-27 16:06:42 +00:00
Bruce Allen 400896a94f comma -> semicolon typo
svn path=/trunk/boinc/; revision=5087
2005-01-12 21:16:45 +00:00
David Anderson 86c3728abe *** empty log message ***
svn path=/trunk/boinc/; revision=5020
2005-01-07 19:45:46 +00:00
David Anderson c417859785 *** empty log message ***
svn path=/trunk/boinc/; revision=4944
2004-12-27 21:14:18 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson 0a516adac0 *** empty log message ***
svn path=/trunk/boinc/; revision=4029
2004-08-07 20:23:22 +00:00
David Anderson bcded77fcb *** empty log message ***
svn path=/trunk/boinc/; revision=3815
2004-07-08 19:20:19 +00:00
David Anderson a3f0e3ba73 checkin_notes
svn path=/trunk/boinc/; revision=3699
2004-06-24 21:00:46 +00:00
David Anderson fb06f2f372 *** empty log message ***
svn path=/trunk/boinc/; revision=3606
2004-06-16 19:10:24 +00:00
David Anderson 7a4ea37042 *** empty log message ***
svn path=/trunk/boinc/; revision=3486
2004-06-01 17:02:14 +00:00
David Anderson 7134a969cb *** empty log message ***
svn path=/trunk/boinc/; revision=3482
2004-05-31 17:37:22 +00:00
David Anderson f80a5f1a12 *** empty log message ***
svn path=/trunk/boinc/; revision=3083
2004-03-17 01:26:44 +00:00
David Anderson 13215f88cd *** empty log message ***
svn path=/trunk/boinc/; revision=2995
2004-02-17 02:16:53 +00:00
David Anderson 6d44e9ccc1 *** empty log message ***
svn path=/trunk/boinc/; revision=2844
2004-01-04 06:48:40 +00:00
David Anderson f4d30aa220 *** empty log message ***
svn path=/trunk/boinc/; revision=2840
2003-12-31 23:09:21 +00:00
David Anderson 645f77de1b *** empty log message ***
svn path=/trunk/boinc/; revision=2819
2003-12-21 05:55:48 +00:00
David Anderson 135cd63228 *** empty log message ***
svn path=/trunk/boinc/; revision=2760
2003-12-09 06:46:50 +00:00